interface NodeInterface

Represents the sanitized version of a DOM node in the sanitized tree.

Once the sanitization is done, nodes are rendered into the final output string.

Methods

void
addChild(NodeInterface$node)

Add a child node to this node.

getParent()

Return the parent node of this node, or null if it has no parent node.

string
render()

Render this node as a string, recursively rendering its children as well.

Details

void addChild(NodeInterface$node)

Add a child node to this node.

Parameters

NodeInterface $node

Return Value

void

NodeInterface|null getParent()

Return the parent node of this node, or null if it has no parent node.

Return Value

NodeInterface|null

string render()

Render this node as a string, recursively rendering its children as well.

Return Value

string