4 require_once
'Services/Html/interfaces/interface.ilHtmlPurifierInterface.php';
35 $key = array_search($a_purifier, $this->purifiers);
37 $this->purifiers[] = $a_purifier;
54 $key = array_search($a_purifier, $this->purifiers);
58 unset($this->purifiers[
$key]);
73 foreach ($this->purifiers as $oPurifier) {
74 $a_html = $oPurifier->purify($a_html);
90 foreach ($a_array_of_html as
$key =>
$html) {
91 foreach ($this->purifiers as $oPurifier) {
98 return $a_array_of_html;
purifyArray(array $a_array_of_html)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
Composite for nesting multiple purifiers.
addPurifier(ilHtmlPurifierInterface $a_purifier)
Adds a node to composite.
removePurifier(ilHtmlPurifierInterface $a_purifier)
Removes a node from composite.
Interface for html sanitizing functionality.
purify($a_html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.