/html-dom /Basic
GitHub 4932★

Get the text content of an element

Returns the raw text content of the ele element and its children. All the HTML tags are excluded.

const text = ele.textContent;

See also

Follow me on and to get more useful contents.