Tags:
create new tag
, view all tags

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 smile

-- 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. hehe!

-- 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

Topic revision: r5 - 2003-12-16 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by PerlIdeas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.