File indexing completed on 2024-05-12 10:06:14
0001 <?php 0002 0003 /** 0004 * Supertype for classes that define a strategy for modifying/purifying tokens. 0005 * 0006 * While HTMLPurifier's core purpose is fixing HTML into something proper, 0007 * strategies provide plug points for extra configuration or even extra 0008 * features, such as custom tags, custom parsing of text, etc. 0009 */ 0010 0011 0012 abstract class HTMLPurifier_Strategy 0013 { 0014 0015 /** 0016 * Executes the strategy on the tokens. 0017 * 0018 * @param HTMLPurifier_Token[] $tokens Array of HTMLPurifier_Token objects to be operated on. 0019 * @param HTMLPurifier_Config $config 0020 * @param HTMLPurifier_Context $context 0021 * @return HTMLPurifier_Token[] Processed array of token objects. 0022 */ 0023 abstract public function execute($tokens, $config, $context); 0024 } 0025 0026 // vim: et sw=4 sts=4