module Hpricot::Traverse

def swap(html = nil, &blk)

in the +html+ string.
Replace this element and its contents with the nodes contained
def swap(html = nil, &blk)
  parent.altered!
  parent.replace_child(self, make(html, &blk))
end