\HTMLPurifier_Token_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.
Synopsis
class HTMLPurifier_Token_Text
extends HTMLPurifier_Token
{
- // members
- public string $name = '#PCDATA';
- public $data;
- public $is_whitespace;
- // Inherited members from HTMLPurifier_Token
- public $line;
- public $col;
- public array $armor;
- public $skip;
- public $rewind;
- public $carryover;
- // methods
- public void __construct()
- // Inherited methods from HTMLPurifier_Token
- public void __get()
- public void position()
- public void rawPosition()
Hierarchy
Extends
Members
public
-
$armor
Lookup array of processing that this token is exempt from. - $carryover
- $col
- $data
- $is_whitespace
- $line
- $name
- $rewind
-
$skip
Used during MakeWellFormed.
Methods
Inherited from HTMLPurifier_Token
public
- __get()
- position() — Sets the position of the token in the source document.
- rawPosition() — Convenience function for DirectLex settings line/col position.