There’s a post here about getting it to work, but it’s old. Since then, the include statements for HTML Purifier were moved to their own file. In a normal script you would include the HTMLPurifier.includes.php file, but this isn’t in line with how CodeIgniter loads libraries, so it requires some hacking to get working.
- Download HTML Purifier and put the contents of the library folder into your codeigniter /system/application/libraries folder.
- Open HTMLPurifier.includes.php and change
[php]require ‘HTMLPurifier.php’;[/php]to
[php]//require ‘HTMLPurifier.php’;[/php]
- Open HTMLPurifier.php and add this just under <?php
[php]require_once(‘HTMLPurifier.includes.php’);[/php]
And that’s all! Load with
[php]$this->load->library(‘HTMLPurifier’);[/php]

Pingback: Bug Tracker: ?????????? ??????? ? ???????????? (????? ???????)
Pingback: Tanketorsken… » Mulighed for at bruge HTMLPurifier som et bibliotek i Codeigniter