JavaScript replace and replaceAll not working as expected [duplicate]
This question already has answers here: How do I replace all occurrences of a string in JavaScript? (50 answers) Closed 2 days ago. I’m having trouble with the replace and replaceAll functions in JavaScript. I have the following fragment, which is part of a Handlebars file: <div class=”default-nav-footer__social-media–responsive”> {{#each socialNetworks}} <a href=”{{url}}” target=”_blank” class=”header–custom-svg” rel=”noopener […]