Skip to content

Instantly share code, notes, and snippets.

@harikt
Created March 11, 2011 15:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harikt/866026 to your computer and use it in GitHub Desktop.
Save harikt/866026 to your computer and use it in GitHub Desktop.
Add to libraries.php or clone li3_htmlpurifier ...
Libraries::add('HTMLPurifier', array(
"path" => LITHIUM_LIBRARY_PATH . "/HTMLPurifier/HTMLPurifier",
"includePath" => LITHIUM_LIBRARY_PATH . "/HTMLPurifier/HTMLPurifier",
"prefix" => "HTMLPurifier_",
"bootstrap" => "Bootstrap.php",
"loader" => array("HTMLPurifier_Bootstrap", "autoload"),
));
/*
* Add above code to libraries.php or
* clone li3_htmlpurifier
* Keep the all files inside HTMLPurifier library inside li3_htmlpurifier/libraries/HTMLPurifier/
* Path will be li3_htmlpurifier/libraries/HTMLPurifier/HTMLPurifier.auto.php
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment