HTML Purifier Plugin for Joomla

7comments

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.

    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

  7. 7.

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

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

    By Perth Webdesign in HTML Purifier Plugin for Joomla

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

    By Matthew in HTML Purifier Plugin for Joomla

  4. Hi, I'm Julio , a web developer from Colombia, I'm working in a project with openwisp and I hope learn like you did. Maybe we can chat sometime about web design and open source software. Good look.

    By Julio in A Turning Point in my Life, Community Networks and OpenWISP

  5. Thank you for this good tips. It make my work more easy.

    By svarc in 10 Effective Business Card Design Tips

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