ILIAS  release_7 Revision v7.30-3-g800a261c036
interface.ilHtmlPurifierInterface.php
Go to the documentation of this file.
1<?php declare(strict_types=1);
2/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3
9{
15 public function purify(string $html) : string;
16
22 public function purifyArray(array $htmlCollection) : array;
23}
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.