31 public function purify(
string $html): string
33 return trim($this->inner->purify($html));
38 foreach ($htmlCollection as $key => $html) {
39 $htmlCollection[$key] = $this->
purify($html);
42 return $htmlCollection;
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.
__construct(ilHtmlPurifierInterface $inner)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface for html sanitizing functionality.
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.
ilHtmlPurifierInterface $inner