public replaceWholeText(content as String) as Text throws DOMException:
Replaces adjacent Text and CDATA siblings with this node's new content. Empty content removes this node as well.
| Parameter | Description |
|---|---|
content | Replacement text; null acts as empty text. |
This node, or null when it was removed.
remaining = text.replaceWholeText("replacement")