4
* Supertype for classes that define a strategy for modifying/purifying tokens.
6
* While HTMLPurifier's core purpose is fixing HTML into something proper,
7
* strategies provide plug points for extra configuration or even extra
8
* features, such as custom tags, custom parsing of text, etc.
11
HTMLPurifier_ConfigSchema::define(
12
'Core', 'EscapeInvalidTags', false, 'bool',
13
'When true, invalid tags will be written back to the document as plain '.
14
'text. Otherwise, they are silently dropped.'
17
class HTMLPurifier_Strategy
21
* Executes the strategy on the tokens.
23
* @param $tokens Array of HTMLPurifier_Token objects to be operated on.
24
* @param $config Configuration options
25
* @returns Processed array of token objects.
27
function execute($tokens, $config, &$context) {
28
trigger_error('Cannot call abstract function', E_USER_ERROR);