Hi, I want to remove the element tag and want to preserve the text inside the tag. I use the replace function of RegExp but it removed everything: The tag and the text inside the tag.
I dont want that, I want to remove the tag only. Clean up the text, remove the tags, I want to present the text only.
var str = str.replace(/<.>[^.]*\/.>/, "");
I used this, but there's a problem, it also removed the text inside it!