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