I've got this example string:
var content = "Lorem ipsum dolor sit amet <a href=\"mailto:info@xxx.com\">info@xxx.com</a> ipsum dolor <a href=\"mailto:info@yyy.eu\">info@yyy.eu</a> adipiscing elit.";
I want to replace (manipulate) all occurrences of the of the a-tag when the string contains a mailto-link.
The anchor's should look like after manipulation:
<a href="#" title="protected">in..@xxx.com</a>
The content string could contain any number of mailto-links.
How can I best perform this task?