class Hpricot::Elements

def empty


=> "

We have to say.

"
doc.to_html
doc.search("i").empty
doc = Hpricot("

We have so much to say.

")

Empty the elements in this list, by removing their insides.
def empty
  each { |x| x.inner_html = nil }
end