I'm getting some html content via ajax and on the callback I'd like to get all src paths and convert them into a json. I'm always getting 404 errors, because it loads the images. How can i prepend it from loading? Also, I'm getting the error: Uncaught TypeError: Converting circular structure to JSON
Here's a demo: http://jsfiddle.net/QgFMe/
The only thing i can think of is regex, but i would prefer a non regex solution.
Thanks