0
0
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:
Edward Z. Yang 2006-07-23 23:23:14 +00:00
parent 609977f9f5
commit 9aa2da8f9f

View 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);
}
}
?>