Example of how HTMLcomment can be used

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

  • Module categories: Filters/Editors
  • Maintenance status: Unknown
  • Development status: Unknown
  • Reported installs: 302 sites currently report using this module. View usage statistics.
  • Last modified: April 24, 2010

Downloads

Version Downloads Date Links
6.x-1.0 tar.gz (7.98 KB) | zip (9.8 KB) 2009-May-16 Notes

Maintainers for HTMLcomment

  • TBarregren - 3 commits
    last: 2 years ago, first: 2 years ago

Issues for HTMLcomment

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 31 Jan 10
nobody click here