1
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 cleared the tags and was only the tag 'p'.