Documentation

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.

Tags
author

Titouan Galopin galopintitouan@gmail.com

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|null

render()

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

public render() : string
Return values
string

        
On this page

Search results