Forum: Ruby on Rails XML Builder - problems with serialized ruby

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
444c7d8579d3389a76c8497f5cb66c13?d=identicon&s=25 M.W. Mitchell (goodieboy)
on 2009-04-29 16:45
(Received via mailing list)
Hi,

I'm using the Builder gem to transform an array/hash that contains
serialized ruby. Builder's to_xs method seems to mangle serialized
ruby though. I can get around this by encoding/decoding with base 64,
but that doesn't seem like a good path to follow.

Builder is using this code for escaping:
http://intertwingly.net/stories/2005/09/28/xchar.rb

Any ideas on how to modify that, so serialized ruby will be escaped
properly?

Thanks,
Matt
This topic is locked and can not be replied to.