Module homepage description is in need of an update with incorrect information

Created on 16 February 2024, 8 months ago

Problem/Motivation

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.

Steps to reproduce

Go to module homepage

Proposed resolution

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.

Remaining tasks

Update module homepage

User interface changes

None

API changes

None

Data model changes

None

📌 Task
Status

Active

Version

1.0

Component

Documentation

Created by

🇬🇧United Kingdom scott_euser

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024