HTML Purifier Plugin for Joomla


18th October 2010 in Coding Tags: joomla, open-source, programming

Html purifier is a Joomla plugin based on the HTML Purifier library.

This extension's goal is to clean the xhtml code of the Joomla content items from eventual validation errors.

It may be used also in another ways, for example to filter data coming from comments or forum posts to prevent XSS attacks.


After having installed the plugin, you need to activate it by going in "Extensions > Plugin manager > HTML purifier".

In the plugin page you will see also some options that you can tweak:

  • Tidy Level: High, Medium, Heavy;
  • Doctype: Xhtml 1.0 Transitional, Xhtml 1.0 strict, Html 4.0 Transitional, Html 4.0 Strict;
  • Linkify: converts automatically every string starting with http:// in a link.
  • Trusted HTML: if set "no" it doesn't allow to use script and style tags in Joomla content items.
  • Proprietary CSS: if set to "on" allows the use of non standard css properties.
  • HTML Purifier Cache: use HTML Purifier built in cache to avoid performance issues.

Deactivate specific content items just by inserting {disablepurifier}.

It would be good to insert the command in an HTML comment (using the HTML mode of your Joomla editor):

<!-- {disablepurifier} -->

This way you avoid showing the string {disablepurifier} in your content items if for some reason you deactivate the plugin.


Here it is a simple demo, but look at the official HTML Purifier demo to get a better idea.

Download Latest Version

Older versions

Older versionf of HTML Purifier for Joomla are also available.


5 November 2010 - thanks to Stefano Roncaglia

  • Added support for Joomla! 1.6
  • Created language folders and added Italian translation

18 October 2010

  • Updated htmlpurifier library to latest version (v4.2.0)
  • Added htmlpurifier_cache parameter
  • Added a fix to prevent target attribute to be stripped

28 April 2009

  • 0.3 correction of a bug for which in certain cases {disablepurifier} wouldn't work

9 February 2008

  • 0.2 version released GNU/GPL


I developed the plugin in late 2007 with Matteo Maria Baccano, another PHP programmer I was working with at that time.
After few months I ported it to Joomla 1.5 and released with GPL license.



  1. 1.

    Miami Web Design said:

    ( on 26th of October 2010 at 17:05 )

    good stuff

  2. 2.

    Marco Pivetta said:

    ( on 1st of December 2010 at 13:34 )

    Great job!
    I'm just goint to put it anywhere on any site I manage :D
    This plugin makes sense! Thank you!

  3. 3.

    John Sheyak said:

    ( on 23rd of June 2011 at 09:36 )

    Thanks for sharing this new plugin with all of us.Good job.Keep it up!

  4. 4.

    jakerusty said:

    ( on 6th of March 2012 at 13:03 )

    Thanks for providing such an useful information. You have provided me with the information what I was looking for a long time. keep posting!!!

  5. 5.

    public speaker said:

    ( on 6th of July 2012 at 07:58 )

    Good work. Found it meaningful!!

  6. 6.

    Yt9uvsxq8i said:

    ( on 13th of May 2014 at 09:00 )

    <a href="">celine bags 2014</a>celine store 13 west covina celine store 12 - replica celine [ buy celine handbags - celine store 10 <a href="">hermes wallet</a>celine store 13 pasadena celine store 19 - Replica Hermes Handbags [ cheap hermes belt - celine store 1015 celine store 13 clothing <a href="">cheap celine</a> celine store 11 - celine handbags celine store 24 [ replica celine -

  7. 7.

    Matthew said:

    ( on 8th of June 2014 at 12:53 )

    Is there any chance that this is currently being updated to the latest version of HTML Purifier and to work with Joomla 3.x?

  8. 8.

    Perth Webdesign said:

    ( on 23rd of June 2014 at 07:26 )

    This looks to be a great plugin.

    As said above, is there any chance you could use your skills to upgrade it to a Joomla 3.x
    so we could use it at
    Perth Web Design Firm Cygnet Interactive ?

    I rather like your web site.

Leave your comment


Let's be social

Popular posts

Latest Comments

  1. <a href="">viagra sample</a> 283738 <a href="">viagra without a prescription</a> why05h <a href="">kamagra jelly</a> 444909 <a href="">buy viagra</a> 839211 cheap viagra online

    By esvdmjq in My work featured on CSS Mania: HydroHolistic

  2. Strongly suggest prev12345678next Visit page / 8 GO > Customer Review (209) You may write a client review upon confirmation of item receipt. This is certainly the most effective carrier available for length of use, simplicity, comfort and freedom to move. My 3 year Granddaughter was delighted ...

    By ergobabyasaau in Django: FileField with ContentType and File Size Validation

  3. <a href=" ">online drugstore</a>, online pharmacies prescription

    By ituhxl in My work featured on CSS Mania: HydroHolistic

  4. Helpful blog. But if I am using classes then how to get query string as it throws error If i do the same in classes like class view(): def callback(request): verification_code = request.GET.get('verification_code') userid = request.GET.get('userid')

    By drum in Django: How to Retrieve Query String Parameters

  5. <a href=>Органика косметика</a> - духи на натуральных маслах, Натуральная косметика.

    By Willisrip in Django: FileField with ContentType and File Size Validation

Popular Tags

censorship creativity criptography django google-summer-of-code ibiza inspiration javascript jquery linux nemesisdesign ninux nodeshot open-source performance photo programming python security staticgenerator talk upload wireless-community