Skip to content

Instantly share code, notes, and snippets.

@pyrat
Created June 11, 2009 12:52
Show Gist options
  • Save pyrat/127878 to your computer and use it in GitHub Desktop.
Save pyrat/127878 to your computer and use it in GitHub Desktop.
xmldoc.find("/*").each do |e|
begin
html_string << e.to_s
rescue
# do nothing
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment