How do I remove all html tags from a string with exception? Ex:
var exemplo = "<div><p>Leno<span> Sousa</span> <i></i>var exemplo = "<div><p>Leno<span> Sousa</span></p></div>";var exemplo = "<div><p>Leno<span> Sousa</span></p></div>";></div>";
and return as:
var exemplo = "<p>Leno Sousa</p>";
As you can see, it cleared the tags and only the 'p' tag remained.