cogAllows inserting HTML or XHTML in wiki pages
TypeJAR
Developed by

XWiki Development Team

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1
Bundled With

XWiki Enterprise, XWiki Enterprise Manager

Installable with the Extension Manager

Description

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. If true then the content of the macro is parsed as markup content (written in the syntax of the current page) and rendered back as XHTML in the macro. Then the whole content is output as XHTML.
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**

Tested on

This extension has been tested with the following configurations.

Extension VersionXWiki FlavorNotes
6.1XWiki Enterprise 6.1

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.rendering:xwiki-rendering-macro-html 9.10.1):

  • org.xwiki.commons:xwiki-commons-xml 9.10.1
  • org.xwiki.rendering:xwiki-rendering-syntax-xhtml 9.10.1
  • org.xwiki.rendering:xwiki-rendering-api 9.10.1
  • org.xwiki.rendering:xwiki-rendering-transformation-macro 9.10.1
Tags:
Created by Thomas Mortagne on 2008/09/30 12:36
    

Get Connected