Class HTMLPurifier_AttrValidator

Description

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.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 654)


	
			
Method Summary
void validateToken ($token &$token, $config &$config, $context $context)
Methods
validateToken (line 667)

Validates the attributes of a token, returning a modified token

that has valid tokens

  • access: public
void validateToken ($token &$token, $config &$config, $context $context)
  • $token &$token: Reference to token to validate. We require a reference because the operation this class performs on the token are not atomic, so the context CurrentToken to be updated throughout
  • $config &$config: Instance of HTMLPurifier_Config
  • $context $context: Instance of HTMLPurifier_Context

Documentation generated on Sun, 06 Mar 2011 00:24:01 -0500 by phpDocumentor 1.4.3