mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-03 05:11:52 +00:00
Commit Strategy, which will soon be splitting up the Definition file.
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@107 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
parent
609977f9f5
commit
9aa2da8f9f
26
library/HTMLPurifier/Strategy.php
Normal file
26
library/HTMLPurifier/Strategy.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
|
||||
class HTMLPurifier_Strategy
|
||||
{
|
||||
|
||||
/**
|
||||
* Executes the strategy on the tokens.
|
||||
*
|
||||
* @param $tokens Array of HTMLPurifier_Token objects to be operated on.
|
||||
* @returns Processed array of token objects.
|
||||
*/
|
||||
function execute($tokens) {
|
||||
trigger_error('Cannot call abstract function', E_USER_ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user