HTMLPurifier 4.4.0
/home/ezyang/Dev/htmlpurifier/library/HTMLPurifier.func.php File Reference

Defines a function wrapper for HTML Purifier for quick use. More...

Go to the source code of this file.

Functions

 HTMLPurifier ($html, $config=null)
 Purify HTML.

Detailed Description

Defines a function wrapper for HTML Purifier for quick use.

Note:
''HTMLPurifier()'' is NOT the same as ''new HTMLPurifier()''

Definition in file HTMLPurifier.func.php.


Function Documentation

HTMLPurifier ( html,
config = null 
)

Purify HTML.

Parameters:
$htmlString HTML to purify
$configConfiguration to use, can be any value accepted by HTMLPurifier_Config::create()

Definition at line 15 of file HTMLPurifier.func.php.

References $config, $html, and $purifier.

Referenced by HTMLPurifier::instance(), and kses().