This module enhances the core HTML filter by allowing you to globally whitelist attributes for all HTML tags. This provides flexibility in controlling user-generated HTML without needing to specify each attribute for every tag individually.
This module does one simple thing: it allows you to whitelist attributes globally, for all HTML tags, when using the core "Limit allowed HTML tags and correct faulty HTML" text filter.
For example, if you want to allow users to specify the "class" and "tabindex" attributes on any tag, then just install this module and update your filter config by adding the following to the "Allowed HTML tags" list (in addition to the list of tags you wish to allow):
<* class tabindex>
This allows you to use the "Limit allowed HTML tags and correct faulty HTML" without being forced to enumerate every single attribute on every single tag.
Ask your assistant about Filter HTML Plus
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
- filter Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.