extends |
HTMLPurifier_Token |
---|
Concrete text token class.
Text tokens comprise of regular parsed character data (PCDATA) and raw character data (from the CDATA sections). Internally, their data is parsed with all entities expanded. Surprisingly, the text token does have a "tag name" called #PCDATA, which is how the DTD represents it in permissible child nodes.
Methods | ||||
---|---|---|---|---|
public
|
__construct(string $data, int $line = null, int $col = null)
Constructor, accepts data and determines if it is whitespace.
Constructor, accepts data and determines if it is whitespace. Parameters
|
# | ||
public
|
toNode()
Converts a token into its corresponding node.
|
# |
Methods inherited from HTMLPurifier_Token |
---|
__get(), position(), rawPosition(), |
Properties | |||
---|---|---|---|
public
|
|
$name = '#PCDATA'
|
# |
public
|
|
$data
|
# |
public
|
|
$is_whitespace
|
# |
Properties inherited from HTMLPurifier_Token |
---|
$line, $col, $armor, $skip, $rewind, $carryover |