Raw HTML is disabled by default in WikkiTikkiTavi, due to the security concerns it raises (the possibility of executing arbitrary JavaScript, embedding arbitrary ActiveX, etc.) You should think twice before enabling raw HTML; not only because of security concerns, but also simply because of ease-of-use. (See meatball:RawHtmlWiki? for more discussion.)

If you enable raw HTML, lines that are enclosed in <html>..</html> tags will be delivered verbatim to the user's browser. (See FormalFormattingRules/RawHTML.)

To enable raw HTML, copy the $ParseEngine array definition from lib/defaults.php in the 'Tavi installation. Place it in your config.php file but uncomment the line for parse_raw_html. Your wiki will now allow raw HTML formatting!

One concern you should be aware of is that your wiki will now no longer automatically pick up changes in the parse engine in future releases. If new formatting rules are added, you will have to manually re-copy the parse engine to config.php when you upgrade. An alternative to the above procedure is to manually insert the parse_raw_html entry into the parse engine array, instead of copying the whole array; this allows you to take advantage of changes in future releases. This is left to the reader as an exercise. ;-)


Why copying anything? Simply uncomment the line parse_raw_html in lib/defaults.php and you are done.

-- GerdG

True, if you just got one wiki in your installation. If there are more (like in VirtualHosts) you should think twice before changing global defaults... --Cubitus

Hi, sorry if this is in the wrong spot, but will tavi stuff still be parsed within the html tags?

- PeteGoldsmith

Nope; no further processing is done on the text between the tags.

How could you permit (say) only <pre></pre> tags ? Is this possible? or perhaps there is another way to emulate the <pre></pre> functionality already? Newbie to Wiki's si I apologise is these are really dumb questions. -- Paul M

Have you tried using <code> / </code>? In essential they do put a <pre>-tags around their code block! --EvenHolen

Return to TaviDocumentation | CustomizingTavi.