Using Text Filters in Joomla 4

Learn About Using Text Filters in Joomla 4

Joomla 4 text filters can be used to allow or limit what HTML tags or attributes groups can use within the text editors. Joomla includes some default filter settings that are typically adequate for most situations. But, there may be times when you want to block or allow additional HTML tags or attributes. 

For example, you may have discovered that a specific tag does not work well with your CSS and you want to block people from using it. 

This guide will explain how to use Joomla Text Filters to limit or allow HTML tags and attributes in Joomla. 

Setting Joomla 4 Text Filters

  1. Login to the Joomla Admin Panel.
  2. Click System then Global Configuration.
    Joomla 4 Text Filters - Global Configuration
  3. Click the Text Filters tab.
    Joomla 4 text Filters Tab

    You will then see a list of all the Filter Groups you can modify the setting for. Default groups are: Public, Guest, Manager, Administrator, Registered, Author, Editor, Publisher, and Super Users.
    Joomla 4 Text Filter Group
  4. Click the drop-down box under Filter Type to choose your preferred filter option, then fill in the Filter Tags and Filter Attributes if needed. Below is a description of the available options. Click the Save & Close button when you are done.
Text Filter OptionDescription
Default Forbidden ListAccording to Joomla this list blocks the following tags: ‘applet’, ‘body’, ‘bgsound’, ‘base’, ‘basefont’, ‘canvas’, ’embed’, ‘frame’, ‘frameset’, ‘head’, ‘html’, ‘id’, ‘iframe’, ‘ilayer’, ‘layer’, ‘link’, ‘meta’, ‘name’, ‘object’, ‘script’, ‘style’, ‘title’, ‘xml’
Custom Forbidden ListChoosing this will only block items listed in the Filter Tags and Filter Attributes fields to the right. 
Allowed ListThis option will block any Filter Tags or Filter Attributes that are not listed in the fields to the right.
No HTMLSelect this option to block all HTML for this group.
No FilteringThis will allow the selected group to use all tags and attributes.
This table describes the Joomla 4 Text Filter options

Now that you know all about Joomla 4 Text Filters, you can control what each group is allowed to include in their content. Check out our Joomla 4 section for more great guides to help you build a successful website.

John-Paul Briones Content Writer II

John-Paul is an Electronics Engineer that spent most of his career in IT. He has been a Technical Writer for InMotion since 2013.

More Articles by John-Paul

2 thoughts on “Using Text Filters in Joomla 4

  1. Thank you for this post. this is very helpfull!

    I still struggled with some HTML codes after these settings. The Marquee tag would be deleted.
    Then I realised that the tinyMCE plugin has a filter too.
    When I disabled the plugin, the marquee was working.
    So I checked thesettingsin tinyMCE and placed thetag into thefield Valid Elements. Then it worked.
    Location: System > plugins > Editor – TinyMCE > Valid Elements. Add your HTML tags to be allowed.

Was this article helpful? Join the conversation!