HTMLPurifier::purify
Filters an HTML snippet/document to be XSS-free and standards-compliant.
Signature
public function purify(String
$html,
[HTMLPurifier_Config
$config = NULL] )
Parameters
$html
— object- of HTML to purify
$config
— object- object for this operation, if omitted,
defaults to the config object specified during this
object's construction. The parameter can also be any type
that HTMLPurifier_Config::create() supports.
Returns
- Purified
- HTML