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
Just to clarify, in order to strip link tags and leave everything between them untouched, it is a two step process - remove the opening tag, then remove the closing tag.
txt.replace(/]*>/i,"").replace(/<\/a>/i, "");
Working sample: