wholeText

The read-only wholeText property of the Text interface returns the full text of all Text nodes logically adjacent to the node.

MDN Reference