Class HTMLPurifier_AttrValidator
Inheritance | HTMLPurifier_AttrValidator |
---|
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.
Public Methods
Method | Description | Defined By |
---|---|---|
validateToken() | Validates the attributes of a token, mutating it as necessary. | HTMLPurifier_AttrValidator |
Method Details
Validates the attributes of a token, mutating it as necessary.
that has valid tokens
public void validateToken ( $token, $config, $context ) | ||
$token | HTMLPurifier_Token | Token to validate. |
$config | HTMLPurifier_Config | Instance of HTMLPurifier_Config |
$context | HTMLPurifier_Context | Instance of HTMLPurifier_Context |