abstract | |
---|---|
extends |
HTMLPurifier_Token |
Abstract class of a tag token (start, end or empty), and its behavior.
Methods | ||||||
---|---|---|---|---|---|---|
public
|
__construct(string $name, array $attr = [], int $line = null, int $col = null, array $armor = [])
Non-overloaded constructor, which lower-cases passed tag name.
Non-overloaded constructor, which lower-cases passed tag name. Parameters
|
# | ||||
public
|
toNode()
Converts a token into its corresponding node.
Converts a token into its corresponding node. Overriden byImplements |
# |
Methods inherited from HTMLPurifier_Token |
---|
__get(), position(), rawPosition(), |
Properties | |||
---|---|---|---|
public
|
|
$is_tag = true
Static bool marker that indicates the class is a tag.
Static bool marker that indicates the class is a tag. This allows us to check objects with !empty($obj->is_tag) without having to use a function call is_a(). |
# |
public
|
|
$name
The lower-case name of the tag, like 'a', 'b' or 'blockquote'.
The lower-case name of the tag, like 'a', 'b' or 'blockquote'. |
# |
public
|
|
$attr = []
Associative array of the tag's attributes.
Associative array of the tag's attributes. |
# |
Properties inherited from HTMLPurifier_Token |
---|
$line, $col, $armor, $skip, $rewind, $carryover |