PHP Class HTMLPurifier_Token_Text, yii

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.
Inheritance: extends HTMLPurifier_Token
显示文件 Open project: yiisoft/yii Class Usage Examples

Public Properties

Property Type Description
$data
$is_whitespace
$name

Public Methods

Method Description
__construct ( string $data, integer $line = null, integer $col = null ) Constructor, accepts data and determines if it is whitespace.
toNode ( )

Method Details

__construct() public method

Constructor, accepts data and determines if it is whitespace.
public __construct ( string $data, integer $line = null, integer $col = null )
$data string String parsed character data.
$line integer
$col integer

toNode() public method

public toNode ( )

Property Details

$data public_oe property

public $data

$is_whitespace public_oe property

public $is_whitespace

$name public_oe property

public $name