1<?
php declare(strict_types=1);
27 public function purify(
string $html) : string
29 return trim($this->inner->purify($html));
37 foreach ($htmlCollection as $key => $html) {
38 $htmlCollection[$key] = $this->
purify($html);
41 return $htmlCollection;
An exception for terminatinating execution or to throw for unit testing.
Class ilTermsOfServiceTrimmedDocumentPurifier.
__construct(ilHtmlPurifierInterface $inner)
ilTermsOfServiceTrimmedDocumentPurifier constructor.
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant....
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.string
Interface for html sanitizing functionality.