How to filter HTML code in Joomla 2.5?

You can define different filtering options regarding the entered HTML code by the members of the different user groups. The HTML filtering configuration can be set through the Joomla 2.5 admin area -> Site -> Global Configuration -> Text Filters.

There you will find a list with all the user groups created for your Joomla 2.5 script. You can pick a text filtering option for each usergroup from the Filter Type drop-down menu. The possible options are:

  • Default Black List - All the tags and attributes are allowed expect the following ones:
  • Tags - 'applet', 'body', 'bgsound', 'base', 'basefont', 'embed', 'frame', 'frameset', 'head', 'html', 'id', 'iframe', 'ilayer', 'layer', 'link', 'meta', 'name', 'object', 'script', 'style', 'title', 'xml';

    Attributes - 'action', 'background', 'codebase', 'dynsrc', 'lowsrc';

    More tags and attributes can be entered in the Filter Tags and Filter Attributes fields. The list items should be separated with comma.

  • Custom Black List - Can overwrite the tags and attributes included in the above list. Again, they should be added in the Filter Tags and Filter Attributes fields.
  • White List - Only the specified tags and attributes will be allowed. 
  • No html - All the HTML code will be filtered.
  • No filtering - The filtering is disabled. Usually this option is selected for the Joomla 2.5 Super Users and Administrators accounts.

Once  you complete the setup save the changes.

Joomla is a powerful software that is easy to work with once you have the right host to support you. Before you lose any more time with the wrong host, check out the SiteGround Joomla hosting offer.