Return a new HTML Purifier instance

See: htmlpurifier.org

Usage

// basic usage
$markupHTMLPurifier = $sanitizer->purifier();

// usage with all arguments
$markupHTMLPurifier = $sanitizer->purifier(array $options = []);

Arguments

NameType(s)Description
$options (optional)array

See config options.

Return value

MarkupHTMLPurifier


$sanitizer methods and properties

API reference based on ProcessWire core version 3.0.97