API - XOOPS 2.5.11 Beta 2
By monxoops.fr
HTMLPurifier_Node_Text Class Reference
Inheritance diagram for HTMLPurifier_Node_Text:
Collaboration diagram for HTMLPurifier_Node_Text:

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
 

Detailed 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.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $data,
  $is_whitespace,
  $line = null,
  $col = null 
)

Constructor, accepts data and determines if it is whitespace.

Parameters
string$dataString parsed character data.
int$line
int$col

Member Function Documentation

◆ toTokenPair()

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.

Field Documentation

◆ $data

$data

@type string Parsed character data of text.

◆ $is_whitespace

$is_whitespace

@type bool Bool indicating if node is whitespace.

◆ $name

$name = '#PCDATA'

PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details. @type string


The documentation for this class was generated from the following file: