lib/roxml/xml/references.rb in roxml-2.5.0 vs lib/roxml/xml/references.rb in roxml-2.5.1
- old
+ new
@@ -87,11 +87,11 @@
def wrap(xml)
return xml if !wrapper || xml.name == wrapper
if child = xml.children.find {|c| c.name == wrapper }
return child
end
- xml.child_add(XML::Node.new(wrapper))
+ xml.child_add(XML::Node.new(wrapper.to_s))
end
def nodes_in(xml)
vals = xml.search(xpath)
@@ -190,10 +190,10 @@
def add(dest, value)
if cdata?
dest.child_add(XML::Node.new_cdata(value.to_s.to_utf_without_deprecation))
else
- dest.content = CGI.escapeHTML(value.to_s.to_utf_without_deprecation)
+ dest.content = value.to_s.to_utf_without_deprecation
end
end
end
class XMLHashRef < XMLTextRef # :nodoc:
\ No newline at end of file