ILIAS  release_8 Revision v8.24
interface.ilHtmlPurifierInterface.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
26{
32 public function purify(string $html): string;
33
40 public function purifyArray(array $htmlCollection): array;
41}
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.