# File lib/nokogiri/xml/node.rb, line 372 def inner_html= tags children.each { |x| x.remove} fragment(tags).children.to_a.each do |node| add_child node end self end