Loading...
 
Features / Usability

Features / Usability


Keep HTML comments

posts: 2

Hey,

the "Allow HTML" checkbox is checked, but all HTML comments are filtered. How can I prevent this? I need the ability to use raw HTML comments and not the ~hc~ tags.

Thanks!

posts: 212

If you turn off the HTML Purifier option, then HTML comments will not be stripped.
The HTML Purifier option is on by default. It is found in security and textarea.
The comment on the HTML Purifier option says "If you are trying to use HTML in your pages and it gets stripped out, you should make sure your HTML is valid or de-activate this feature".

If you want to keep the HTML Purifier option on, and do not want to use ~hc~ and ~/hc~ tags, then you could put the comments in an HTML Plugin. The HTML plugin requires validation though.

Tom

posts: 2
Thanks Tom, I have disabled the HTML Purifier and now it works!