1<?
php declare(strict_types=1);
15 public function purify(
string $html) : string;
An exception for terminatinating execution or to throw for unit testing.
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.