Given a string like:
</gd:organization><gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]'/><gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]' primary='true'/><gd:phoneNumber rel='http://schemas.google.com/g/2005#work'>011 360 51 60</gd:phoneNumber>
I need to remove from the string:
<gd:email rel='http://schemas.google.com/g/2005#other' address='[email protected]'/>
- based on a match to: [email protected]
.
It has to be done in basic JavaScript and I can't import any special parsing tools. I can't seem to find a combination that does not error out.
Thank you!