Question
I'd like to disable HTML in my Twiki. Unfortunately, i couldn't find any hints how to do that -- neither in the docs nor in the FAQ or TWiki.cfg.
.
--
TWikiGuest - 13 Apr 2002
Answer
This isn't supported by TWiki. You might be able to write a plugin to do this (try deleting all HTML tags), but since TWiki creates its own HTML tags as part of rendering, this would have to run very early in the page rendering process.
--
RichardDonkin - 14 Apr 2002
This is currently not in TWiki. You can however filter all tags in a Plugin. Write your own plugin or add the filter to the DefaultPlugin, function
startRenderingHandler: (This code has not been tested)
# filter out all HTML
$_[0] =~ s/<\/?[a-z][^>]+>//gois;
Note that this will filter out any HTML, including TWiki's own, like
<nop> escapes for WikiWords, or when users enter angle brackets as part of a formula, e.g.
a<b
See also
SanitisingHTML.
--
PeterThoeny - 11 Apr 2002