extends |
HTMLPurifier_Injector |
---|
Injector that removes spans with no attributes
Methods | ||
---|---|---|
public
|
__construct()
|
# |
public
|
prepare($config, $context)
Prepares the injector by giving it the config and context objects:
this allows references to important variables to be…
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()). ReturnsBoolean false if success, string of missing needed element/attribute if failure Overrides |
# |
public
|
handleElement(HTMLPurifier_Token &$token)
Handler that is called when a start or empty token is processed
Handler that is called when a start or empty token is processed Overrides |
# |
public
|
handleEnd(HTMLPurifier_Token &$token)
Handler that is called when an end token is processed
|
# |
Methods inherited from HTMLPurifier_Injector |
---|
rewindOffset(), getRewindOffset(), checkNeeded(), allowsElement(), forward(), forwardUntilEndToken(), backward(), handleText(), notifyEnd() |
Properties | |||
---|---|---|---|
public
|
|
$name = 'RemoveSpansWithoutAttributes'
|
# |
public
|
|
$needed = ['span']
|
# |
Properties inherited from HTMLPurifier_Injector |
---|
$htmlDefinition, $currentNesting, $currentToken, $inputZipper, $rewindOffset |