Quantcast
Channel: What's the best way to strip out only the anchor HTML tags in javascript, given a string of html? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

What's the best way to strip out only the anchor HTML tags in javascript, given a string of html?

$
0
0

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


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images