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

Summary

Methods
Properties
Constants
execute()
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

execute()

execute(\HTMLPurifier_Token[]  $tokens, \HTMLPurifier_Config  $config, \HTMLPurifier_Context  $context) : \HTMLPurifier_Token[]

Executes the strategy on the tokens.

Parameters

\HTMLPurifier_Token[] $tokens

Array of HTMLPurifier_Token objects to be operated on.

\HTMLPurifier_Config $config
\HTMLPurifier_Context $context

Returns

\HTMLPurifier_Token[] —

Processed array of token objects.