19declare(strict_types=1);
34 public function purify(
string $html): string
36 return trim($this->inner->purify($html));
41 foreach ($htmlCollection as
$key => $html) {
45 return $htmlCollection;
Class ilTermsOfServiceTrimmedDocumentPurifier.
__construct(ilHtmlPurifierInterface $inner)
ilHtmlPurifierInterface $inner
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.
Interface for html sanitizing functionality.