SyntaxFix
Write A Post
Hire A Developer
Questions
I just needed to strip out the <a> tags and replace them with the text of the link.
<a>
This seems to work great.
htmlContent= htmlContent.replace(/<a.*href="(.*?)">/g, ''); htmlContent= htmlContent.replace(/<\/a>/g, '');