ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f87
HTMLPurifier_Strategy Class Reference

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

+ Inheritance diagram for HTMLPurifier_Strategy:
+ Collaboration diagram for HTMLPurifier_Strategy:

Public Member Functions

 execute ($tokens, $config, $context)
 Executes the strategy on the tokens. More...
 

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

Definition at line 12 of file Strategy.php.

Member Function Documentation

◆ execute()

HTMLPurifier_Strategy::execute (   $tokens,
  $config,
  $context 
)
abstract

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.

The documentation for this class was generated from the following file: