mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-12-23 08:51:53 +00:00
23 lines
531 B
PHP
23 lines
531 B
PHP
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Injects tokens into the document while parsing for well-formedness.
|
||
|
* This enables "formatter-like" functionality such as auto-paragraphing,
|
||
|
* smiley-ification and linkification to take place.
|
||
|
*/
|
||
|
class HTMLPurifier_Injector
|
||
|
{
|
||
|
|
||
|
/**
|
||
|
* Handler that is called when a text token is processed
|
||
|
*/
|
||
|
function handleText(&$token, $config, &$context) {}
|
||
|
|
||
|
/**
|
||
|
* Handler that is called when a start token is processed
|
||
|
*/
|
||
|
function handleStart(&$token, $config, &$context) {}
|
||
|
|
||
|
}
|
||
|
|
||
|
?>
|