extends |
HTMLPurifier_Node |
---|
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, $is_whitespace, 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
|
toTokenPair()
Returns a pair of start and end tokens, where the end token
is null if it is not necessary. Does not include children.
Returns a pair of start and end tokens, where the end token is null if it is not necessary. Does not include children. Implements |
# |
Properties | |||
---|---|---|---|
public
|
|
$name = '#PCDATA'
PCDATA tag name compatible with DTD, see
HTMLPurifier_ChildDef_Custom for details.
PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details. |
# |
public
|
|
$data
|
# |
public
|
|
$is_whitespace
|
# |
Properties inherited from HTMLPurifier_Node |
---|
$line, $col, $armor, $dead |