HTMLPurifier_AttrValidator
in package
Validates the attributes of a token. Doesn't manage required attributes very well. The only reason we factored this out was because RemoveForeignElements also needed it besides ValidateAttributes.
Table of Contents
Methods
- validateToken() : mixed
- Validates the attributes of a token, mutating it as necessary.
Methods
validateToken()
Validates the attributes of a token, mutating it as necessary.
public
validateToken(HTMLPurifier_Token $token, HTMLPurifier_Config $config, HTMLPurifier_Context $context) : mixed
that has valid tokens
Parameters
- $token : HTMLPurifier_Token
-
Token to validate.
- $config : HTMLPurifier_Config
-
Instance of HTMLPurifier_Config
- $context : HTMLPurifier_Context
-
Instance of HTMLPurifier_Context