Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

HTML Tag Usage

35 sites Security covered
View on drupal.org

This module reports on all HTML tags and attributes being used in your site's formatted text fields, helping you understand your content's HTML usage. It allows you to inspect specific tag and attribute combinations to see which content entities use them, which is useful for security audits or GDPR compliance.

Synopsis

The HTML Tag Usage module analyzes the contents of formatted text fields on your site and generates a report that lists all HTML tags and HTML attributes in use for each text format. You may inspect a tag/attribute combination to get a list of entities that use the tag/attribute combination.


Excerpt from HTML Tag Usage report page

Potential use cases for this module might include, but are not limited to:

  • You just took over maintenance of a Drupal installation from somebody else. Upon inspecting the text formats of the Drupal installation, you notice that none of them use the HTML filter and will just return the HTML as is. Now you would like to make the setup more secure by limiting HTML tags available for the text formats to what is actually needed, but you don't want to accidentally "alter" the content entered by the editors of your Drupal installation, so you need to know what tags and attributes are actually in use.
  • Your data protection officer wants you to remove any iframes that embed content from a popular video portal to maintain GDPR compliance. Upon inspecting the text formats on your site, you notice that some of them allow usage of iframe tags. You don't know, whether they are actually in use. You don't know, if a migration to video Media entities would best be done manually or if the number of iframe tags warrants writing a custom module to perform the migration. If you decided to perform a manual migration, you would need a list of entities that use iframe tags.


Inspect tag dialog

Note that the module is best used in a development environment and not in production. Depending on the size of your Drupal installation, the module may generate a huge database table to store results when analyzing the content of your site. Therefore, it is recommended to uninstall it as soon as you no longer need the report.


Generated HTML text filter configuration

Requirements

This module depends on the `text` module provided by Drupal Core.

Configuration

  1. Go to the configuration page of the module at Configuration > Development > HTML Tag Usage.
  2. Configure the field types of the formatted text fields, whose contents you want to be analyzed. By default, all formatted field types provided by the `text` module are selected for analysis.
  3. Go to the report page of the module at Reports > HTML Tag Usage.
  4. Click on the *Generate report* link to generate the report. A batch process will analyze all fields of the selected field types. Once the batch process is complete, you will be redirected to the generated report. You may regenerate the report at any time.
  5. Make sure to review the permissions provided by the module. There is one permission to administer the configuration, one permission to generate reports and one permission to view reports.

Credits

Current maintainers:

The development of this project has been partly sponsored by werk21 GmbH.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Nov 2025
Latest release
9 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
1.0.0-beta5 Pre-release 10–11 Nov 6, 2025