Class HTMLPurifier_AttrValidator

InheritanceHTMLPurifier_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

Hide inherited methods

MethodDescriptionDefined By
validateToken() Validates the attributes of a token, mutating it as necessary. HTMLPurifier_AttrValidator

Method Details

validateToken() public method

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