ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
HTMLPurifier.func.php
Go to the documentation of this file.
1<?php
2
16function HTMLPurifier($html, $config = null)
17{
18 static $purifier = false;
19 if (!$purifier) {
20 $purifier = new HTMLPurifier();
21 }
22 return $purifier->purify($html, $config);
23}
24
25// vim: et sw=4 sts=4
HTMLPurifier($html, $config=null)
Purify HTML.
An exception for terminatinating execution or to throw for unit testing.
$html
Definition: example_001.php:87
$config
Definition: bootstrap.php:15