showing results for - "pull out only text from element javascript"
Edgar
10 Jan 2019
1function extractContent(html) {
2
3    return (new DOMParser).parseFromString(html, "text/html") . 
4        documentElement . textContent;
5
6}
7