Class HTMLPurifier_Injector_RemoveEmpty

Description

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.

A note on how handlers create changes; this is done by assigning a new value to the $token reference. These values can take a variety of forms and are best described HTMLPurifier_Strategy_MakeWellFormed->processToken() documentation.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 13335)

HTMLPurifier_Injector
   |
   --HTMLPurifier_Injector_RemoveEmpty
Method Summary
void handleElement ( &$token)
void prepare ( $config,  $context)
Variables
Methods
handleElement (line 13349)
  • access: public
void handleElement ( &$token)
  • &$token

Redefinition of:
HTMLPurifier_Injector::handleElement()
Handler that is called when a start or empty token is processed
prepare (line 13340)
  • access: public
void prepare ( $config,  $context)
  • $config
  • $context

Redefinition of:
HTMLPurifier_Injector::prepare()
Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector. This function also checks if the HTML environment will work with the Injector (see checkNeeded()).

Inherited Methods

Inherited From HTMLPurifier_Injector

HTMLPurifier_Injector::allowsElement()
HTMLPurifier_Injector::backward()
HTMLPurifier_Injector::checkNeeded()
HTMLPurifier_Injector::current()
HTMLPurifier_Injector::forward()
HTMLPurifier_Injector::forwardUntilEndToken()
HTMLPurifier_Injector::getRewind()
HTMLPurifier_Injector::handleElement()
HTMLPurifier_Injector::handleEnd()
HTMLPurifier_Injector::handleText()
HTMLPurifier_Injector::notifyEnd()
HTMLPurifier_Injector::prepare()
HTMLPurifier_Injector::rewind()

Documentation generated on Sun, 06 Mar 2011 00:24:09 -0500 by phpDocumentor 1.4.3