We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
From https://groups.google.com/d/msg/nokogiri-talk/-/cGJk1BBRXygJ
Using Nokogiri 1.5.6:
#! /usr/bin/env ruby require 'nokogiri' d1=Nokogiri::XML('<r><a>text</a></r>') d2=Nokogiri::XML('<r></r>') ne=d1.root.xpath('//a').first.dup(1) ne.content += "& < & > \" &" d2.root << ne puts d2.to_s
On MRI 1.9.3, output is:
<?xml version="1.0"?> <r> <a>text& < & > " &</a> </r>
On JRuby 1.7.1, output is:
<?xml version="1.0"?> <r><a>text&amp; &lt; &amp; &gt; " &amp;</a></r>
Note the double-escaping on JRuby.
The text was updated successfully, but these errors were encountered:
This is similar to #794. This may give a guide to the appropriate fix.
Sorry, something went wrong.
2321ac8
No branches or pull requests
From https://groups.google.com/d/msg/nokogiri-talk/-/cGJk1BBRXygJ
Using Nokogiri 1.5.6:
On MRI 1.9.3, output is:
On JRuby 1.7.1, output is:
Note the double-escaping on JRuby.
The text was updated successfully, but these errors were encountered: