class Hpricot::Elements

def inner_html(*string)

If a HTML +string+ is supplied, this method acts like inner_html=.

Returns an HTML fragment built of the contents of each element in this list.
def inner_html(*string)
  if string.empty?
    map { |x| x.inner_html }.join
  else
    x = self.inner_html = string.pop || x
  end
end