I have this string:
var string = '<article><img alt="Ice-cream" src=http://placehold.it/300x300g"><div style="float: right; width: 50px;"><p>Lorem Ipsum </p></div></article>';
and I am trying to extract the text out of it as such:
var $str = $(string).text();
console.log($str)
but since I am concerned about performance due to a huge amount of strings with big text, I would want to go natively.
How is this possible?