Class HTMLPurifier_Token_Text

Description

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.

Located in /lib/core/Parsers/htmlpurifier/HTMLPurifier.standalone.php (line 15573)

HTMLPurifier_Token
   |
   --HTMLPurifier_Token_Text
Variable Summary
mixed $data
mixed $name
Method Summary
HTMLPurifier_Token_Text __construct ($data $data, [ $line = null], [ $col = null])
Variables
mixed $data (line 15577)

< PCDATA tag name compatible with DTD.

  • access: public
mixed $is_whitespace (line 15578)

< Parsed character data of text.

  • access: public
mixed $name = '#PCDATA' (line 15576)
  • access: public

Inherited Variables

Inherited from HTMLPurifier_Token

HTMLPurifier_Token::$armor
HTMLPurifier_Token::$carryover
HTMLPurifier_Token::$col
HTMLPurifier_Token::$line
HTMLPurifier_Token::$rewind
HTMLPurifier_Token::$skip
Methods
Constructor __construct (line 15585)

Constructor, accepts data and determines if it is whitespace.

  • access: public
HTMLPurifier_Token_Text __construct ($data $data, [ $line = null], [ $col = null])
  • $data $data: String parsed character data.
  • $line
  • $col

Inherited Methods

Inherited From HTMLPurifier_Token

HTMLPurifier_Token::position()
HTMLPurifier_Token::rawPosition()
HTMLPurifier_Token::__get()

Documentation generated on Sun, 06 Mar 2011 00:24:13 -0500 by phpDocumentor 1.4.3