Class HTMLPurifier_Token_Text
Inheritance | HTMLPurifier_Token_Text » HTMLPurifier_Token |
---|
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.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$armor | Lookup array of processing that this token is exempt from. | HTMLPurifier_Token | |
$carryover | HTMLPurifier_Token | ||
$col | Column of line node was on in source document. Null if unknown. | HTMLPurifier_Token | |
$data | HTMLPurifier_Token_Text | ||
$is_whitespace | HTMLPurifier_Token_Text | ||
$line | Line number node was on in source document. Null if unknown. | HTMLPurifier_Token | |
$name | HTMLPurifier_Token_Text | ||
$rewind | HTMLPurifier_Token | ||
$skip | Used during MakeWellFormed. | HTMLPurifier_Token |
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Constructor, accepts data and determines if it is whitespace. | HTMLPurifier_Token_Text |
__get() | HTMLPurifier_Token | |
position() | Sets the position of the token in the source document. | HTMLPurifier_Token |
rawPosition() | Convenience function for DirectLex settings line/col position. | HTMLPurifier_Token |
toNode() | HTMLPurifier_Token_Text |
Property Details
Method Details
Constructor, accepts data and determines if it is whitespace.
public void __construct ( $data, $line = null, $col = null ) | ||
$data | string | String parsed character data. |
$line | int | |
$col | int |
public void toNode ( ) |