I have a string in JavaScript and it includes an a tag with an href. I want to remove all links and the text. I know how to just r
Examples above do not remove all occurrences. Here is my solution:
str.replace(/]*>/gm, '').replace(/<\/a>/gm, '')