API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct ($data, $is_whitespace, $line=null, $col=null) | |
toTokenPair () | |
toTokenPair () | |
Data Fields | |
$name = '#PCDATA' | |
$data | |
$is_whitespace | |
Data Fields inherited from HTMLPurifier_Node | |
$line | |
$col | |
$armor = array() | |
$dead = false | |
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, | |
$is_whitespace, | |||
$line = null , |
|||
$col = null |
|||
) |
Constructor, accepts data and determines if it is whitespace.
string | $data | String parsed character data. |
int | $line | |
int | $col |
toTokenPair | ( | ) |
Returns a pair of start and end tokens, where the end token is null if it is not necessary. Does not include children. @type array
Reimplemented from HTMLPurifier_Node.
$data |
@type string Parsed character data of text.
$is_whitespace |
@type bool Bool indicating if node is whitespace.
$name = '#PCDATA' |
PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details. @type string