class Nokogiri::XML::NodeSet
def wrap(html, &blk)
##
def wrap(html, &blk) each do |j| new_parent = Nokogiri.make(html, &blk) j.parent.add_child(new_parent) new_parent.add_child(j) end self end
def wrap(html, &blk) each do |j| new_parent = Nokogiri.make(html, &blk) j.parent.add_child(new_parent) new_parent.add_child(j) end self end