ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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