require 'hpricot'doc = Hpricot("<p>A simple <b>test</b> string.<img src='http://google.com/image.jpg' /></p>")doc.search("img").removedoc.to_s