$sanitizer→purify()
Purify HTML markup using HTML Purifier
See: htmlpurifier.org
Usage
// basic usage
$string = $sanitizer->purify(string $str);
// usage with all arguments
$string = $sanitizer->purify(string $str, array $options = []);Arguments
| Name | Type(s) | Description |
|---|---|---|
$str | string | String to purify |
$options (optional) | array | See config options. |
Return value
stringPurified markup string.
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.252