Created
November 3, 2010 00:29
-
-
Save SeanTAllen/660590 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'nokogiri' | |
page = <<EOS | |
<head> | |
<title>Test</title> | |
</head> | |
EOS | |
puts Nokogiri::HTML.fragment( page ).inspect | |
puts Nokogiri::XML.fragment( page ).inspect | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment