Filtering HTML tags from rich text fields

November 14, 2023

When editing a site, contributors often use a HTML-based rich text editor. Since contributors are allowed to use HTML tags and to copy and paste HTML content, you can prevent the use of specific HTML tags in rich text fields. To do so, you specify a comma-separated list of forbidden tags. When the contributor’s HTML contents are saved, Jahia automatically removes those tags from the submitted contents.

You access HTML filtering from Administration>Sites>HTML Filtering.

The following example shows filtering of H1, script, table, tr, td, and strong tags.