Abstract Class HTMLPurifier_Strategy

SubclassesHTMLPurifier_Strategy_Composite, HTMLPurifier_Strategy_Core, HTMLPurifier_Strategy_FixNesting, HTMLPurifier_Strategy_MakeWellFormed, HTMLPurifier_Strategy_RemoveForeignElements, HTMLPurifier_Strategy_ValidateAttributes

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.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
execute() Executes the strategy on the tokens. HTMLPurifier_Strategy

Method Details

execute() public abstract method

Executes the strategy on the tokens.

public abstract HTMLPurifier_Token[] execute ( $tokens, $config, $context )
$tokens HTMLPurifier_Token[]

Array of HTMLPurifier_Token objects to be operated on.

$config HTMLPurifier_Config
$context HTMLPurifier_Context
return HTMLPurifier_Token[]

Processed array of token objects.