Bette's Midler

mostly just shitty iphone photos

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. Code snippet - getImage on Snipplr July 6, 2009 [11:27]