HTML Purifier Plugin for Joomla

8comments

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.

Usage

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.

Demo

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.

Changelog


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

Credits

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.

Retweet

Comments

  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="http://tiny6.com/ls1w">celine bags 2014</a>celine store 13 west covina celine store 12 http://wsi4.me/2AAJ - replica celine [http://f4u.us/1ei3q buy celine handbags - celine store 10 <a href="http://off.st/h1o">hermes wallet</a>celine store 13 pasadena celine store 19 http://lqrs.me:/i97z - Replica Hermes Handbags [http://www.dd4u.ch/s/wal cheap hermes belt - celine store 1015 celine store 13 clothing <a href="http://soun.dk/cIm">cheap celine</a> celine store 11 http://padzeo.com/a/1c5 - celine handbags celine store 24 [http://g0.to/7T13 replica celine -

  7. 7.

    Matthew said:

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

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

  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 www.cyg.net.au Cygnet Interactive ?

    P.S.
    I rather like your web site.

Leave your comment

Categories

Let's be social

Popular posts

Latest Comments

  1. 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

  2. <a href=" http://prescriptionnopharmacy.com ">online drugstore</a>, http://prescriptionnopharmacy.com online pharmacies prescription

    By ituhxl in My work featured on CSS Mania: HydroHolistic

  3. 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

  4. <a href=http://www.aisha-davis.ru/organicheskaya_kosmetika.php>Органика косметика</a> - духи на натуральных маслах, Натуральная косметика.

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

  5. ar le barreau de cette ville. En voici le texte :Les avocats du barreau de Constantine ayant eu le regret de constater que dans l'ensemble de l'arrondissement judiciaire :L'information des affaires pénales, sans échapper complètement aux juridictions d'instruction, devient de plus ...

    By Gnxiphsqp in IE8 doesn't like 1x1px semi-transparent backgrounds

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