diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-02 07:06:28 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-09-02 07:06:28 -0700 |
commit | 7fbd012d71a21ac7a30e6b1bb045208dff225903 (patch) | |
tree | 500da6e01c84ff467c87480bf6aa739bb8ee5de7 /modules/gallery/lib/HTMLPurifier/HTMLPurifier.func.php | |
parent | dc6167bffaf291c4d207e5d6cb842f8033dca4a9 (diff) |
Move HTMLPurifier from core to contrib and make it optional. Delete the modules/gallery/lib and HTMLPurifier.php
Diffstat (limited to 'modules/gallery/lib/HTMLPurifier/HTMLPurifier.func.php')
-rw-r--r-- | modules/gallery/lib/HTMLPurifier/HTMLPurifier.func.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/modules/gallery/lib/HTMLPurifier/HTMLPurifier.func.php b/modules/gallery/lib/HTMLPurifier/HTMLPurifier.func.php deleted file mode 100644 index 141d7f5f..00000000 --- a/modules/gallery/lib/HTMLPurifier/HTMLPurifier.func.php +++ /dev/null @@ -1,23 +0,0 @@ -<?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 |