diff options
Diffstat (limited to 'library/HTMLPurifier.func.php')
-rw-r--r-- | library/HTMLPurifier.func.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/library/HTMLPurifier.func.php b/library/HTMLPurifier.func.php index 56a55b2fe..64b140bec 100644 --- a/library/HTMLPurifier.func.php +++ b/library/HTMLPurifier.func.php @@ -8,11 +8,13 @@ /** * Purify HTML. - * @param $html String HTML to purify - * @param $config Configuration to use, can be any value accepted by + * @param string $html String HTML to purify + * @param mixed $config Configuration to use, can be any value accepted by * HTMLPurifier_Config::create() + * @return string */ -function HTMLPurifier($html, $config = null) { +function HTMLPurifier($html, $config = null) +{ static $purifier = false; if (!$purifier) { $purifier = new HTMLPurifier(); |