HtmlFilter
in package
FinalYes
Tags
Table of Contents
Constants
Methods
- filter() : string
- Runs the given HTML through the given filter
Constants
ALLOW
public
mixed
ALLOW
= 'allow'
ESCAPE
public
mixed
ESCAPE
= 'escape'
STRIP
public
mixed
STRIP
= 'strip'
Methods
filter()
Runs the given HTML through the given filter
public
static filter(string $html, string $filter) : string
Parameters
- $html : string
-
HTML input to be filtered
- $filter : string
-
One of the HtmlFilter constants
Tags
Return values
string —Filtered HTML