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.

If you need an optimized solution for your Joomla 4 site, check out our Managed VPS Hosting.

JB
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

Comments

It looks like this article doesn't have any comments yet - you can be the first. If you have any comments or questions, start the conversation!

Was this article helpful? Let us know!