Class HTMLPurifier_Injector_RemoveSpansWithoutAttributes

Description

Injector that removes spans with no attributes

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

HTMLPurifier_Injector
   |
   --HTMLPurifier_Injector_RemoveSpansWithoutAttributes
Variable Summary
mixed $name
mixed $needed
Method Summary
void handleElement ( &$token)
void handleEnd ( &$token)
void prepare ( $config,  $context)
Variables
mixed $name = 'RemoveSpansWithoutAttributes' (line 13392)
  • access: public

Redefinition of:
HTMLPurifier_Injector::$name
Advisory name of injector, this is for friendly error messages
mixed $needed = array('span') (line 13393)
  • access: public

Redefinition of:
HTMLPurifier_Injector::$needed
Array of elements and attributes this injector creates and therefore

Inherited Variables

Inherited from HTMLPurifier_Injector

HTMLPurifier_Injector::$currentNesting
HTMLPurifier_Injector::$htmlDefinition
HTMLPurifier_Injector::$inputIndex
HTMLPurifier_Injector::$inputTokens
HTMLPurifier_Injector::$rewind
Methods
handleElement (line 13410)
  • access: public
void handleElement ( &$token)
  • &$token

Redefinition of:
HTMLPurifier_Injector::handleElement()
Handler that is called when a start or empty token is processed
handleEnd (line 13437)
  • access: public
void handleEnd ( &$token)
  • &$token

Redefinition of:
HTMLPurifier_Injector::handleEnd()
Handler that is called when an end token is processed
prepare (line 13403)
  • 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