HTMLPurifier_Token_Comment
Concrete comment token class. Generally will be ignored.
- Full name:
\HTMLPurifier_Token_Comment
- Parent class:
\HTMLPurifier_Token
Properties
data
Character data within comment.
is_whitespace
Methods
__construct
Transparent constructor.
Parameters:
Parameter | Type | Description |
---|---|---|
$data |
string | String comment data. |
$line |
int | |
$col |
int |
toNode
Converts a token into its corresponding node.
Inherited methods
__get
Parameters:
Parameter | Type | Description |
---|---|---|
$n |
string |
position
Sets the position of the token in the source document.
Parameters:
Parameter | Type | Description |
---|---|---|
$l |
int | |
$c |
int |
rawPosition
Convenience function for DirectLex settings line/col position.
Parameters:
Parameter | Type | Description |
---|---|---|
$l |
int | |
$c |
int |
toNode
Converts a token into its corresponding node.
- This method is abstract.
Automatically generated on 2025-03-18