Abstract Class HTMLPurifier_Strategy
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
Method | Description | Defined By |
---|---|---|
execute() | Executes the strategy on the tokens. | HTMLPurifier_Strategy |
Method Details
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. |
---|