Extraiga solo texto del elemento JavaScript
function extractContent(html) {
return (new DOMParser).parseFromString(html, "text/html") .
documentElement . textContent;
}
Fantastic Flamingo