Solved it in case anyone needs it here it is
var feed = feeds.entries[i].content; var parsedFeed = feed.replace(/src=/gi, "tempsrc="); var tmpHolder = document.createElement('div'); tmpHolder.innerHTML=parsedFeed;
I have a string containing html markup which include <img src='path.jpg'/>
I would like to run a regex against the string to replace every src attr to tmpSrc
so
<img src='path.jpg'/>
would turn into
<img tmpSrc='path.jpg'/>
this is in javascript by the way
and here is the root issue posted in other places but has not been solved
Browser parse HTML for jQuery without loading resources
How to parse AJAX response without loading resources?
Thanks