ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
interface.ilHtmlPurifierInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
30 public function purify(string $html): string;
31
38 public function purifyArray(array $htmlCollection): array;
39}
Interface for html sanitizing functionality.
purify(string $html)
Filters an HTML snippet/document to be XSS-free and standards-compliant.
purifyArray(array $htmlCollection)
Filters an array of HTML snippets/documents to be XSS-free and standards-compliant.