Class InputFilter
InputFilter is a class for filtering input from any data source
Forked from the php input filter library by: Daniel Morris <dan@rootcube.com> Original Contributors: Gianpaolo Racca, Ghislain Picard, Marco Wandschneider, Chris Tobin and Andrew Eddie.
Direct known subclasses
Methods summary
public
|
#
__construct( array $tagsArray = array(), array $attrArray = array(), integer $tagsMethod =
Constructor for InputFilter class. |
public
mixed
|
|
public static
boolean
|
|
protected
string
|
|
protected
string
|
|
protected
array
|
|
protected
string
|
|
protected
string
|
|
protected
string
|
#
stripCssExpressions( string $source )
Remove CSS Expressions in the form of <property>:expression(...) |
Magic methods summary
Constants summary
integer |
TAGS_WHITELIST
|
0 |
#
Defines the InputFilter instance should use a whitelist method for sanitising tags. |
integer |
TAGS_BLACKLIST
|
1 |
#
Defines the InputFilter instance should use a blacklist method for sanitising tags. |
integer |
ATTR_WHITELIST
|
0 |
#
Defines the InputFilter instance should use a whitelist method for sanitising attributes. |
integer |
ATTR_BLACKLIST
|
1 |
#
Defines the InputFilter instance should use a blacklist method for sanitising attributes. |
Properties summary
protected static
|
$instances |
#
A container for InputFilter instances. |
public
array
|
$tagsArray |
#
The array of permitted tags (whitelist). |
public
array
|
$attrArray |
#
The array of permitted tag attributes (whitelist). |
public
integer
|
$tagsMethod |
#
The method for sanitising tags |
public
integer
|
$attrMethod |
#
The method for sanitising attributes |
public
integer
|
$xssAuto |
#
A flag for XSS checks. Only auto clean essentials = 0, Allow clean blacklisted tags/attr = 1 |
public
array
|
$tagBlacklist |
#
The list of the default blacklisted tags. |
public
array
|
$attrBlacklist |
#
The list of the default blacklisted tag attributes. All event handlers implicit. |