HTMLPurifier 4.4.0
|
Concrete text token class. More...
Public Member Functions | |
__construct ($data, $line=null, $col=null) | |
Constructor, accepts data and determines if it is whitespace. | |
__construct ($data, $line=null, $col=null) | |
Constructor, accepts data and determines if it is whitespace. | |
Public Attributes | |
$name = '#PCDATA' | |
PCDATA tag name compatible with DTD. | |
$data | |
Parsed character data of text. | |
$is_whitespace | |
Bool indicating if node is whitespace. |
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_Token_Text::__construct | ( | $ | data, |
$ | line = null , |
||
$ | col = null |
||
) |
Constructor, accepts data and determines if it is whitespace.
$data | String parsed character data. |
Definition at line 24 of file Text.php.
References HTMLPurifier_Token::$col, $data, and HTMLPurifier_Token::$line.
HTMLPurifier_Token_Text::__construct | ( | $ | data, |
$ | line = null , |
||
$ | col = null |
||
) |
Constructor, accepts data and determines if it is whitespace.
$data | String parsed character data. |
Definition at line 16833 of file HTMLPurifier.standalone.php.
References HTMLPurifier_Token::$col, $data, and HTMLPurifier_Token::$line.
HTMLPurifier_Token_Text::$data |
HTMLPurifier_Token_Text::$is_whitespace |
HTMLPurifier_Token_Text::$name = '#PCDATA' |