Hash.from_xml double escapes &

h={:title => "hi & mv288" }

=> {:title=>"hi & mv288"}

h.to_xml

=> "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<hash>\n <title>hi &amp;amp; mv288</title>\n</hash>\n"

Hash.from_xml h.to_xml

=> {"hash"=>{"title"=>"hi & mv288"}}

If you notice line#2 and #4, the &amp; characters in the title value became & after a series of Hash.to_xml and from_xml method calls.

Is there any way to prevent Hash.from_xml from converting &amp; into &.

I posted question at so as well.