scriptlog:lib:core:htmlpurifier
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| scriptlog:lib:core:htmlpurifier [2026/09/26 09:09] – admin admin | scriptlog:lib:core:htmlpurifier [2026/09/26 09:43] (current) – admin admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== HTMLPurifier ====== | ||
| - | |||
| - | **Layer:** '' | ||
| - | |||
| - | ---- | ||
| - | < | ||
| - | class HTMLPurifier | ||
| - | </ | ||
| - | |||
| - | Facade that coordinates HTML Purifier' | ||
| - | |||
| - | ======= Docblock Metadata ======= | ||
| - | |||
| - | ^ Tag ^ Value ^ | ||
| - | | '' | ||
| - | |||
| - | ======= TODO ======= | ||
| - | |||
| - | * We need an easier way to inject strategies using the configuration object. | ||
| - | |||
| - | ======= Inheritance ======= | ||
| - | |||
| - | //No parent, interface or trait. This is a root type.// | ||
| - | |||
| - | ======= Constants (1) ======= | ||
| - | |||
| - | ^ Visibility ^ Name ^ Value ^ Line ^ | ||
| - | | '' | ||
| - | |||
| - | ======= Properties (2) ======= | ||
| - | |||
| - | ^ Visibility ^ Type ^ Name ^ Default ^ Line ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | |||
| - | ======= Methods (6) ======= | ||
| - | |||
| - | ^ Visibility ^ Method ^ Summary ^ Line ^ | ||
| - | | public | '' | ||
| - | | public | '' | ||
| - | | public | '' | ||
| - | | public | '' | ||
| - | | public static | '' | ||
| - | | public static | '' | ||
| - | |||
| - | |||
| - | ======== __construct() ======== | ||
| - | |||
| - | < | ||
| - | public function __construct($config = null) | ||
| - | </ | ||
| - | |||
| - | //lines 113–117 (5)// | ||
| - | |||
| - | Initializes the purifier. | ||
| - | |||
| - | ^ Parameter ^ Type ^ Default ^ Description ^ | ||
| - | | '' | ||
| - | |||
| - | |||
| - | ======== addFilter() ======== | ||
| - | |||
| - | < | ||
| - | public function addFilter($filter) | ||
| - | </ | ||
| - | |||
| - | //lines 124–132 (9)// | ||
| - | |||
| - | Adds a filter to process the output. First come first serve | ||
| - | |||
| - | ^ Parameter ^ Type ^ Default ^ Description ^ | ||
| - | | '' | ||
| - | |||
| - | **Returns: | ||
| - | |||
| - | |||
| - | ======== purify() ======== | ||
| - | |||
| - | < | ||
| - | public function purify($html, | ||
| - | </ | ||
| - | |||
| - | //lines 145–228 (84)// | ||
| - | |||
| - | Filters an HTML snippet/ | ||
| - | |||
| - | ^ Parameter ^ Type ^ Default ^ Description ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | |||
| - | **Returns: | ||
| - | |||
| - | |||
| - | ======== purifyArray() ======== | ||
| - | |||
| - | < | ||
| - | public function purifyArray($array_of_html, | ||
| - | </ | ||
| - | |||
| - | //lines 239–254 (16)// | ||
| - | |||
| - | Filters an array of HTML snippets | ||
| - | |||
| - | ^ Parameter ^ Type ^ Default ^ Description ^ | ||
| - | | '' | ||
| - | | '' | ||
| - | |||
| - | **Returns: | ||
| - | |||
| - | |||
| - | ======== instance() ======== | ||
| - | |||
| - | < | ||
| - | public static function instance($prototype = null) | ||
| - | </ | ||
| - | |||
| - | //lines 267–279 (13)// | ||
| - | |||
| - | Singleton for enforcing just one HTML Purifier in your system | ||
| - | |||
| - | ^ Parameter ^ Type ^ Default ^ Description ^ | ||
| - | | '' | ||
| - | |||
| - | **Returns: | ||
| - | |||
| - | |||
| - | ======== getInstance() ======== | ||
| - | |||
| - | < | ||
| - | public static function getInstance($prototype = null) | ||
| - | </ | ||
| - | |||
| - | //lines 292–295 (4)// | ||
| - | |||
| - | Singleton for enforcing just one HTML Purifier in your system | ||
| - | |||
| - | ^ Parameter ^ Type ^ Default ^ Description ^ | ||
| - | | '' | ||
| - | |||
| - | **Returns: | ||
| - | |||
| - | |||
| - | ---- | ||
| - | |||
| - | //This page is generated from source by ' | ||
scriptlog/lib/core/htmlpurifier.1790413762.txt.gz · Last modified: by admin
