PHP Class HTMLPurifier_Strategy, yii
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.
Mostra file
Open project: yiisoft/yii
Public Methods
Method |
Description |
|
execute ( HTMLPurifier_Token[] $tokens, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_Token[] |
Executes the strategy on the tokens. |
|
Method Details
execute()
abstract public method
Executes the strategy on the tokens.
abstract public execute ( HTMLPurifier_Token[] $tokens, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : HTMLPurifier_Token[] |
$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. |