textContent

The textContent property of the Node interface represents the text content of the node and its descendants.

MDN Reference