I have string with link
<a href="https://twitter.com/" target="_blank" rel="noopener noreferrer">Twitter/</a>
and I need to wrap a text inside link in a <span>
element
like :
<a href="https://twitter.com/" target="_blank" rel="noopener noreferrer"><span style="color: white">Twitter</span>/</a>
so what regex i need ? ps. i need to send this string as part of html mail letter from mongodb via nodejs, not for manipulate DOM