This project is not covered by Drupal’s security advisory policy.
HTMLcomment provides an input format filter that allows HTML comments, i.e. <!-- ... -->, and an additional filter that allows hidden comment, i.e. [!-- ... --].
Examples
Example of an HTML comment
<!-- This will be in the HTML, but not displayed. -->
Example of a private comment
[!-- This will not be in the HTML, and not displayed. --]
Background
An HTML comment is a text surrounded with <!-- and -->. If you put a such comment in a text area, you expect it to be in the HTML code, but not rendered on the screen. Unfortunately, Drupal converts < and > to their HTML entities, resulting in the display of the comment. This module overcome this problem.
This module is also a solution on #222926: HTML Corrector filter escapes HTML comments and #348514: Node body does not handle <!--break--> properly.
In addition, this module also provides a filter that removes any text surrounded with [!-- and --]. The purpose is to allow private comments in text areas.
HTMLcomment is developed by Thomas Barregren of NodeOne.
Project information
- Project categories: Content editing experience
3 sites report using this module
- Created by TBarregren on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
