Class HTMLPurifier_Node_Text

InheritanceHTMLPurifier_Node_Text » HTMLPurifier_Node

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

Hide inherited properties

PropertyTypeDescriptionDefined By
$armor Lookup array of processing that this token is exempt from. HTMLPurifier_Node
$col Column number of the start token in the source document. Null if unknown. HTMLPurifier_Node
$data HTMLPurifier_Node_Text
$dead When true, this node should be ignored as non-existent. HTMLPurifier_Node
$is_whitespace HTMLPurifier_Node_Text
$line Line number of the start token in the source document HTMLPurifier_Node
$name PCDATA tag name compatible with DTD, see HTMLPurifier_ChildDef_Custom for details. HTMLPurifier_Node_Text

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor, accepts data and determines if it is whitespace. HTMLPurifier_Node_Text
toTokenPair() HTMLPurifier_Node_Text

Property Details

$data public property
public $data null
$is_whitespace public property
public $is_whitespace null
$name public property
public $name '#PCDATA'

Method Details

__construct() public method

Constructor, accepts data and determines if it is whitespace.

public void __construct ( $data, $is_whitespace, $line null, $col null )
$data string

String parsed character data.

$is_whitespace
$line int
$col int
toTokenPair() public method

public void toTokenPair ( )