Update the source so the third party code passes the File Structure Test

This commit is contained in:
Tim Almdal
2009-07-03 14:18:45 -07:00
parent 8d5900f639
commit f6d847739a
324 changed files with 220 additions and 218 deletions

View File

@@ -0,0 +1,23 @@
<?php defined("SYSPATH") or die("No direct script access.");
/**
* @file
* Defines a function wrapper for HTML Purifier for quick use.
* @note ''HTMLPurifier()'' is NOT the same as ''new HTMLPurifier()''
*/
/**
* Purify HTML.
* @param $html String HTML to purify
* @param $config Configuration to use, can be any value accepted by
* HTMLPurifier_Config::create()
*/
function HTMLPurifier($html, $config = null) {
static $purifier = false;
if (!$purifier) {
$purifier = new HTMLPurifier();
}
return $purifier->purify($html, $config);
}
// vim: et sw=4 sts=4