ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
HTMLPurifier.func.php File Reference

Defines a function wrapper for HTML Purifier for quick use. More...

Go to the source code of this file.

Functions

 HTMLPurifier ($html, $config=null)
 Purify HTML. More...
 

Detailed Description

Defines a function wrapper for HTML Purifier for quick use.

Note
''HTMLPurifier()'' is NOT the same as ''new HTMLPurifier()''

Definition in file HTMLPurifier.func.php.

Function Documentation

◆ HTMLPurifier()

HTMLPurifier (   $html,
  $config = null 
)

Purify HTML.

Parameters
$htmlString HTML to purify
$configConfiguration to use, can be any value accepted by HTMLPurifier_Config::create()

Definition at line 15 of file HTMLPurifier.func.php.

Referenced by ilHtmlPurifierAbstractLibWrapper\__construct(), HTMLPurifier\instance(), and kses().

15  {
16  static $purifier = false;
17  if (!$purifier) {
18  $purifier = new HTMLPurifier();
19  }
20  return $purifier->purify($html, $config);
21 }
HTMLPurifier($html, $config=null)
Purify HTML.
+ Here is the caller graph for this function: