11 public $name =
'RemoveSpansWithoutAttributes';
54 $this->attrValidator->validateToken($token, $this->config, $this->context);
55 $token->armor[
'ValidateAttributes'] =
true;
57 if (!empty($token->attr)) {
78 if ($token->markForDeletion) {
Concrete end token class.
Validates the attributes of a token.
$config
Used by AttrValidator.
Concrete start token class.
$context
HTMLPurifier_Context
$attrValidator
HTMLPurifier_AttrValidator
forwardUntilEndToken(&$i, &$current, &$nesting)
Similar to _forward, but accepts a third parameter $nesting (which should be initialized at 0) and st...
prepare($config, $context)
Create styles array
The data for the language used.
Injects tokens into the document while parsing for well-formedness.
Injector that removes spans with no attributes.