Class HTMLPurifier_Node_Text
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.
- HTMLPurifier_Node
- HTMLPurifier_Node_Text
public
|
#
__construct( string $data, integer $is_whitespace, integer $line = null, mixed $col = null )
Constructor, accepts data and determines if it is whitespace. |
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. |
public
string
|
$name | '#PCDATA' |
#
PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details. |
public
mixed
|
$data |
|
|
public
mixed
|
$is_whitespace |
|
$armor,
$col,
$dead,
$line
|