Question
Is it possible to deactivate Html?
Answer
Are you serious? This seems like an April Fool's joke, except that it's December.
Please review the
SupportGuidelines and add more details to this question. Or check your calendar. See you in April
--
TorbenGB - 12 Dec 2003
Be fair, it's a serious question, I think. If I have a user community of - say - electronics engineers, whose familiarity with HTML doesn't extend beyond the occasional <p>, then I may well want to deactivate HTML in topics to force them to use
TWikiML and prevent them tripping over their own toes.
However, the reality is no, you can't deactivate HTML. Sorry.
And please sign your questions. We won't flame you.... much.
--
CrawfordCurrie - 12 Dec 2003
A low hanging fruit approach is to remove all HTML code. This is not tested and might contain bugs, it is just a place to start: Add this to
commonTagsHandler of the
DefaultPlugin.pm:
unless( $_[0] =~ /<\/head>/i ) { # do not filter HTML in skins
# filter out all HTML tags
$_[0] =~ s/<[a-z][^>]*>//goi;
}
Above code is not perfect, it fails if there is an ">" in an HTML parameter.
--
PeterThoeny - 16 Dec 2003