Skip to content

Instantly share code, notes, and snippets.

@brynary
Created January 22, 2009 18:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save brynary/50662 to your computer and use it in GitHub Desktop.
Save brynary/50662 to your computer and use it in GitHub Desktop.
module Nokogiri
module XML
class Builder
def insert_html(html)
Nokogiri::HTML(html).at("body").children.each do |child|
insert child
end
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment