Apple Mac OS X Server (Extending Your Wiki Server For Ve Manual do Utilizador Página 33

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 45
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 32
Chapter 2 Allowing Specic Protocols, CSS Styles, and HTML Tags and Attributes 33
For example, to allow the use of the font-size style attribute, create the following block:
<key>styles</key>
<array>
<string>font-size</string>
</array>
To allow the HTML style” attribute, add the “style” attribute to the “_all_” tag, which is
described in the following section.
Allowing Specic HTML Tags and Attributes
YouTube, Flash, and other advanced web formats usually require HTML tags and
attributes that aren’t allowed by default. For example, YouTube requires the following
tags and attributes:
Tag Attributes
object width, height
param name, value
embed src, type, width, height
Because these HTML tags or attributes aren’t included in the built-in whitelist, you
must add them to the custom whitelist.
To allow specic HTML tags and attributes:
1 Create a tags key and follow it with a dict.
2 In the dict, create keys named after the HTML tags.
To allow a specic attribute for all HTML tags, create a key named “_all_”.
3 After each key, create string arrays listing allowed tag attributes.
For example, to support YouTube, create the following block:
<key>tags</key>
<dict>
<key>object</key>
<array>
<string>width</string>
<string>height</string>
</array>
<key>param</key>
<array>
<string>name</string>
<string>value</string>
</array>
<key>embed</key>
Vista de página 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 44 45

Comentários a estes Manuais

Sem comentários