mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-10 07:38:41 +00:00
9191877740
git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1210 48356398-32a2-884e-a903-53898d9a118a
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) {}
|
|
|
|
}
|
|
|
|
?>
|