HTML Macro

This is a XWiki macro, bundled with all the XWiki products by default.
Macro developed by the XWiki Development Team.
This macro cannot currently be downloaded separately.

HTML Macro

Allows inserting HTML or XHTML in wiki pages.

Usage

{{html wiki="true"|"false" clean="true"|"false"}}...{{/html}}

Parameters definition

NameOptionalAllowed valuesDefault valueDescription
wikiyestrue/falsefalseIndicate if the wiki syntax (including other macros) inside the macro is evaluated or not.
cleanyestrue/falsetrueIndicate if the user input must be converted to valid XHTML or not.

Examples

Interpreted wiki syntax

{{html wiki="true"}}
<table>
  <tr>
    <td>
      * listitem
    </td>
  </tr>
</table>
{{/html}}

Result

  • listitem

Escaped wiki syntax

{{html}}
**some escaped text**
{{/html}}

Result

**some escaped text**

Tags:
Created by Thomas Mortagne on 2008/09/30 12:36
Last modified by Thomas Mortagne on 2010/02/23 10:47

This wiki is licensed under a Creative Commons license
2.2.1.27354