mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:50:11 +00:00
mistpark 2.0 infrasturcture lands
This commit is contained in:
parent
b49858b038
commit
ffb1997902
360 changed files with 25001 additions and 457 deletions
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.
|
||||
*/
|
||||
|
||||
|
||||
abstract class HTMLPurifier_Strategy
|
||||
{
|
||||
|
||||
/**
|
||||
* Executes the strategy on the tokens.
|
||||
*
|
||||
* @param $tokens Array of HTMLPurifier_Token objects to be operated on.
|
||||
* @param $config Configuration options
|
||||
* @returns Processed array of token objects.
|
||||
*/
|
||||
abstract public function execute($tokens, $config, $context);
|
||||
|
||||
}
|
||||
|
||||
// vim: et sw=4 sts=4
|
Loading…
Add table
Add a link
Reference in a new issue