retire apenas texto do elemento javascript
function extractContent(html) {
return (new DOMParser).parseFromString(html, "text/html") .
documentElement . textContent;
}
Fantastic Flamingo