\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.

Summary

Methods
Properties
Constants
validateToken()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

validateToken()

validateToken(\HTMLPurifier_Token  $token, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : mixed

Validates the attributes of a token, mutating it as necessary.

that has valid tokens

Parameters

\HTMLPurifier_Token $token

Token to validate.

\HTMLPurifier_Config $config

Instance of HTMLPurifier_Config

\HTMLPurifier_Context $context

Instance of HTMLPurifier_Context

Returns

mixed —