Monday, April 16, 2012

What is the best way to create an array of all images found in a string?

I am looking to create an array of all the images in a string of HTML.



I've tried using the following but it generates errors if the complete URL path is not present in the src.



var found = $(html).find('img');




No comments:

Post a Comment