Node.textContent

string textContent() @property

The text of the node (DOM textContent): the text of all the descendants for elements and fragments, the data for texts, comments and processing instructions, null for the document and the doctype.

void textContent(const(char)[] text) @property

Set the text: for elements and fragments it replaces all the children with a text node, for texts, comments and processing instructions it replaces the data. It does nothing on the document and the doctype (as in the DOM).