Spaces:
Sleeping
Sleeping
Download processmaker-files/thirdparty/HTMLPurifier/HTMLPurifier.func.php from kenken999/processmaker-community: direct link, hf CLI and curl.
- Browser
- Download file 576 Bytes
-
https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/thirdparty/HTMLPurifier/HTMLPurifier.func.php
- Command line
-
hf download hf://spaces/kenken999/processmaker-community/processmaker-files/thirdparty/HTMLPurifier/HTMLPurifier.func.php
-
curl -L -o HTMLPurifier.func.php https://huggingface.co/spaces/kenken999/processmaker-community/resolve/main/processmaker-files/thirdparty/HTMLPurifier/HTMLPurifier.func.php
576 Bytes
| /** | |
| * @file | |
| * Defines a function wrapper for HTML Purifier for quick use. | |
| * @note ''HTMLPurifier()'' is NOT the same as ''new HTMLPurifier()'' | |
| */ | |
| /** | |
| * Purify HTML. | |
| * @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) | |
| { | |
| static $purifier = false; | |
| if (!$purifier) { | |
| $purifier = new HTMLPurifier(); | |
| } | |
| return $purifier->purify($html, $config); | |
| } | |
| // vim: et sw=4 sts=4 | |