- Issue created by @scott_euser
The module homepage currently says this:
Provides a Twig filter that removes HTML comments.
Can be deprecated once https://www.drupal.org/project/drupal/issues/2672656 🐛 Remove HTML Debug Comments from a particular field in debug mode Closed: outdated is resolved.
Yet that issue was resolved but the filter does not actually exist in core, or existed and was subsequently removed. Other suggestions to use |render|striptags|trim only work if you want all markup removed, not just html comments.
Go to module homepage
Update homepage to:
Provides a Twig filter that removes HTML comments without removing other markup.
Example use case: You have enabled twig.config debug true in your development.services.yml, have 'Convert line breaks into HTML' enabled in a text format, and have added a Media entity. The markup from the twig template rendered within the text format will result in extra line breaks compared to your live site as a result of html comment lines, making debugging more difficult.
Update module homepage
None
None
None
Active
1.0
Documentation