Skip to content

HTMLPurifier_Node_Element

Concrete element node class.

Properties

name

The lower-case name of the tag, like 'a', 'b' or 'blockquote'.

public $name

attr

Associative array of the node's attributes.

public $attr

children

List of child elements.

public $children

empty

Does this use the form or the form, i.e.

public $empty

is it a pair of start/end tokens or an empty token.


endCol

public $endCol

endLine

public $endLine

endArmor

public $endArmor

Methods

__construct

public __construct(mixed $name, mixed $attr = array(), mixed $line = null, mixed $col = null, mixed $armor = array()): mixed

Parameters:

Parameter Type Description
$name mixed
$attr mixed
$line mixed
$col mixed
$armor mixed

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