bettes midler

a real life website by Jonny Nail   ·   life + code

getImage

This function pulls out an image URL from a string of HTML. I find this snippet of code useful when I need to create a thumbnail for a news article etc.

If there is more than one image in the string it will just grab the first one.

July 6, 2009 [11:27]

Comment

Go Home