NodeInterface
in
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.
Tags
Table of Contents
Methods
- addChild() : void
- Add a child node to this node.
- getParent() : self|null
- Return the parent node of this node, or null if it has no parent node.
- render() : string
- Render this node as a string, recursively rendering its children as well.
Methods
addChild()
Add a child node to this node.
public
addChild(self $node) : void
Parameters
- $node : self
getParent()
Return the parent node of this node, or null if it has no parent node.
public
getParent() : self|null
Return values
self|nullrender()
Render this node as a string, recursively rendering its children as well.
public
render() : string