ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
Text.php
Go to the documentation of this file.
1
<?
php
2
12
class
HTMLPurifier_Token_Text
extends
HTMLPurifier_Token
13
{
14
18
public
$name
=
'#PCDATA'
;
24
public
$data
;
30
public
$is_whitespace
;
31
40
public
function
__construct
(
$data
,
$line
= null,
$col
= null)
41
{
42
$this->
data
=
$data
;
43
$this->is_whitespace = ctype_space(
$data
);
44
$this->line =
$line
;
45
$this->col =
$col
;
46
}
47
48
public
function
toNode
() {
49
return
new
HTMLPurifier_Node_Text
($this->
data
, $this->is_whitespace, $this->line, $this->col);
50
}
51
}
52
53
// vim: et sw=4 sts=4
data
Add some data
Definition:
01pharSimple.php:56
HTMLPurifier_Token_Text\toNode
toNode()
Definition:
Text.php:48
HTMLPurifier_Token_Text\$data
$data
string
Definition:
Text.php:24
HTMLPurifier_Token\$line
$line
Line number node was on in source document.
Definition:
Token.php:12
HTMLPurifier_Token_Text\$name
$name
string
Definition:
Text.php:18
HTMLPurifier_Token_Text\__construct
__construct($data, $line=null, $col=null)
Constructor, accepts data and determines if it is whitespace.
Definition:
Text.php:40
HTMLPurifier_Node_Text
Concrete text token class.
Definition:
Text.php:12
HTMLPurifier_Token
Abstract base token class that all others inherit from.
Definition:
Token.php:6
HTMLPurifier_Token_Text\$is_whitespace
$is_whitespace
bool
Definition:
Text.php:30
HTMLPurifier_Token\$col
$col
Column of line node was on in source document.
Definition:
Token.php:18
php
HTMLPurifier_Token_Text
Concrete text token class.
Definition:
Text.php:12
libs
composer
vendor
ezyang
htmlpurifier
library
HTMLPurifier
Token
Text.php
Generated on Fri Feb 21 2025 19:00:50 for ILIAS by
1.8.13 (using
Doxyfile
)