A class to sanitize HTML strings.
Whether to allow name and id attributes.
Whether to replace URLs by HTML anchors.
Sanitize an HTML string.
The dirty text.
Optional
The optional sanitization options.
The sanitized string.
Set the allowed schemes
Allowed schemes. Automatically regenerates sanitizer options to apply the change. Note: the schemes merge into the current config and does not get overwritten.
Set the whether to allow name and id attributes.
name
id
Set the URL replacement boolean.
URL replacement boolean.
A class to sanitize HTML strings.