Replace the node by its text content.
the node to replace
the created Text node
Generated using TypeDoc
Replace the node by its text content.