26 public function purify(
string $html) : string
28 return trim($this->inner->purify($html));
36 foreach ($htmlCollection as $key => $html) {
37 $htmlCollection[$key] = $this->
purify($html);
40 return $htmlCollection;
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.$htmlCollection string[]
__construct(ilHtmlPurifierInterface $inner)
ilAccessibilityTrimmedDocumentPurifier constructor.
Class ilAccessibilityTrimmedDocumentPurifier.
Interface for html sanitizing functionality.
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string