Class HTMLPurifier_Strategy

Description

Supertype for classes that define a strategy for modifying/purifying tokens.

While HTMLPurifier's core purpose is fixing HTML into something proper, strategies provide plug points for extra configuration or even extra features, such as custom tags, custom parsing of text, etc.

  • abstract:

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


	
			
Direct descendents
Class Description
HTMLPurifier_Strategy_Composite Composite strategy that runs multiple strategies on tokens.
HTMLPurifier_Strategy_FixNesting Takes a well formed list of tokens and fixes their nesting.
HTMLPurifier_Strategy_MakeWellFormed Takes tokens makes them well-formed (balance end tags, etc.)
HTMLPurifier_Strategy_RemoveForeignElements Removes all unrecognized tags from the list of tokens.
HTMLPurifier_Strategy_ValidateAttributes Validate all attributes in the tokens.
Method Summary
Processed execute ($tokens $tokens, $config $config,  $context)
Methods
execute (line 6423)

Executes the strategy on the tokens.

  • return: array of token objects.
  • abstract:
  • access: public
Processed execute ($tokens $tokens, $config $config,  $context)
  • $tokens $tokens: Array of HTMLPurifier_Token objects to be operated on.
  • $config $config: Configuration options
  • $context

Redefined in descendants as:

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