Created
June 21, 2012 13:22
-
-
Save statonjr/2965699 to your computer and use it in GitHub Desktop.
Nokogiri JRuby issue
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 'nokogiri' | |
html = <<-EOS | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>JRuby Nokogiri Test</title> | |
</head> | |
<body> | |
<p>Test</p> | |
</body> | |
</html> | |
EOS | |
doc = Nokogiri::HTML::Document.parse(html) | |
puts doc.to_html |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>JRuby Nokogiri Test</title> | |
</head> | |
<body> | |
<p>Test</p> | |
</body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment