\HTMLPurifier_Token_Comment

Concrete comment token class. Generally will be ignored.

Summary

Methods
Properties
Constants
__get()
position()
rawPosition()
toNode()
__construct()
$line
$col
$armor
$skip
$rewind
$carryover
$data
$is_whitespace
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$line

$line

Line number node was on in source document. Null if unknown.

$col

$col

Column of line node was on in source document. Null if unknown.

$armor

$armor

Lookup array of processing that this token is exempt from.

Currently, valid values are "ValidateAttributes" and "MakeWellFormed_TagClosedError"

$skip

$skip

Used during MakeWellFormed. See Note [Injector skips]

$rewind

$rewind

$carryover

$carryover

$data

$data

Character data within comment.

$is_whitespace

$is_whitespace

Methods

__get()

__get(string  $n) : null|string

Parameters

string $n

Returns

null|string —

position()

position(int  $l = null, int  $c = null) : mixed

Sets the position of the token in the source document.

Parameters

int $l
int $c

Returns

mixed —

rawPosition()

rawPosition(int  $l, int  $c) : mixed

Convenience function for DirectLex settings line/col position.

Parameters

int $l
int $c

Returns

mixed —

toNode()

toNode() : mixed

Converts a token into its corresponding node.

Returns

mixed —

__construct()

__construct(string  $data, int  $line = null, int  $col = null) : mixed

Transparent constructor.

Parameters

string $data

String comment data.

int $line
int $col

Returns

mixed —