API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct ($data, $line=null, $col=null) | |
toNode () | |
Public Member Functions inherited from HTMLPurifier_Token | |
__get ($n) | |
position ($l=null, $c=null) | |
rawPosition ($l, $c) | |
toNode () | |
Data Fields | |
$name = '#PCDATA' | |
$data | |
$is_whitespace | |
Data Fields inherited from HTMLPurifier_Token | |
$line | |
$col | |
$armor = array() | |
$skip | |
$rewind | |
$carryover | |
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.
__construct | ( | $data, | |
$line = null , |
|||
$col = null |
|||
) |
Constructor, accepts data and determines if it is whitespace.
string | $data | String parsed character data. |
int | $line | |
int | $col |
toNode | ( | ) |
Converts a token into its corresponding node.
Reimplemented from HTMLPurifier_Token.
$data |
@type string Parsed character data of text.
$is_whitespace |
@type bool Bool indicating if node is whitespace.
$name = '#PCDATA' |
@type string PCDATA tag name compatible with DTD.