class Nokogiri::XML::Node

def inner_html= node_or_tags

Also see related method +children=+

Returns self.

+node_or_tags+ can be a Nokogiri::XML::Node, a Nokogiri::XML::DocumentFragment, or a string containing markup.
Set the inner html for this Node to +node_or_tags+
###
def inner_html= node_or_tags
  self.children = node_or_tags
  self
end