class Nokogiri::XML::Node

def wrap(html)

Returns self

Add html around this node
##
def wrap(html)
  new_parent = document.parse(html).first
  add_next_sibling(new_parent)
  new_parent.add_child(self)
  self
end