1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-08-06 14:16:32 +02:00

Factor out auto-paragraph to injector class.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1210 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang
2007-06-23 18:50:41 +00:00
parent 3066ca357a
commit 9191877740
3 changed files with 161 additions and 132 deletions

View File

@@ -0,0 +1,23 @@
<?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) {}
}
?>