Let's say there's a string of HTML, with script tags, plain text, whatever.
What's the best way to strip out only the <a>
tags?
I've been using some methods here, but these are for all tags. Strip HTML from Text JavaScript
Let's say there's a string of HTML, with script tags, plain text, whatever.
What's the best way to strip out only the <a>
tags?
I've been using some methods here, but these are for all tags. Strip HTML from Text JavaScript