Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Strip HTML tags - Custom text format filter

No security coverage No further development 94 sites

This module adds a filter to Drupal text formats that allows administrators to strip specific HTML tags from content. It's designed for situations where you want to allow users a high degree of HTML freedom, similar to "Full HTML," but still need to remove certain tags for security or content control reasons. This filter should not be relied upon for XSS protection and should only be used with trusted user roles.

This module adds a new filter to the Drupal text formats.

This filter enables the user (admin) to strip specified HTML tags from the HTML text that uses this filter.

This is mainly intended for use with a "Full HTML" like format, but still wanting to have some html tags to be filtered out. If you choose the Drupal "Limit allowed HTML tags .." filter and want to give the user nearly the "freedom" of "Full HTML" like editing this can be quite complicated and at some point even impossible. So this is where this module comes in and aims to give text format admins the possibility to give some trusted users a "Full HTML" like format, but still limit some tags (like h1-tags, or script-Tags).

Security advisory: This filter should not be used as a XSS protection filter, because this is not intended by this filter. It does intenionally not use drupal XSS filter mechanisms. So text formats using this filter should only be given to trusted roles.

Ask your assistant about Strip HTML tags - Custom text format filter

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

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
Jul 2023
Latest release
3 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core PHP Release date
8.x-1.0-beta3 Pre-release 8–10 Jul 3, 2023