XML Builder - problems with serialized ruby


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:

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


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs