Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Mindloop Blog:
Htmlpurifier and the CodeIgniter framework
Jul 11, 2007 @ 12:40:00

From the Mindloop blog today, there's a quick new tutorial on getting HtmlPurifier to work happily with the CodeIgniter framework.

HtmlPurifier is a standards-compliant HTML filter library written in PHP. HTML Purifier will not only remove all malicious code (better known as XSS) with a thoroughly audited, secure yet permissive whitelist, it will also make sure your documents are standards compliant. [...] Although Codeigniter comes with it's own XSS filtering method, I prefer the use of the HtmlPurifier.

Installation is simple, involving only a four step process (including the download) and using it is just as easy. It's (basically) just a matter of loading the library and calling the purify method to output the corrected HTML.

tagged: htmlpurifier codeigniter framework html filter install htmlpurifier codeigniter framework html filter install