Which method to use when applying the list of attributes provided by the user and stored in $attrArray.
Tags:
var:
Tested by filterAttr() to see whether the user-provide list of tags in $attrArray describes those tags which are forbidden, or those tags which are permitted. Default false.
true => Remove those tags which are in
$attrArray.
false => Allow only those tags which are listed in
$attrArray.
Which method to use when applying the list of tags provided by the user and stored in $tagsArray.
Tags:
var:
Tested by filterTags() to see whether the user-provide list of tags in $tagsArray describes those tags which are forbidden, or those tags which are permitted. Default false.
true => Remove those tags which are in
$tagsArray.
false => Allow only those tags which are listed in
$tagsArray.
Remove forbidden tags and attributes from a string
Inspect the input for tags "<tagname ...>" and check the tag name against a list of forbidden tag names. Delete all tags with forbidden names. If $xssAuto is true, delete all tags in $tagBlacklist. If there is a user-defined tag list in $tagsArray, process according to the value of $tagsMethod.
If the tag name is OK, then call filterAttr() to check all attributes of the tag and delete forbidden attributes.
Remove forbidden tags and attributes from user input
Construct an InputFilter object. Then apply the process() method to each of the user input arrays $_POST, $_GET and $_REQUEST. FIXME: isn't it partly redundant to do this to $_REQUEST? Shouldn't we do it to $_COOKIE instead?