Skip to content

HTMLPurifier_Node_Comment

Concrete comment node class.

Properties

data

Character data within comment.

public $data

is_whitespace

public $is_whitespace

Methods

__construct

Transparent constructor.

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

Parameters:

Parameter Type Description
$data string String comment data.
$line int
$col int

toTokenPair

Returns a pair of start and end tokens, where the end token is null if it is not necessary. Does not include children.

public toTokenPair(): mixed

Inherited methods

toTokenPair

Returns a pair of start and end tokens, where the end token is null if it is not necessary. Does not include children.

public toTokenPair(): mixed
  • This method is abstract.


Automatically generated on 2025-03-18