Hey everyone, I was poking around with to_xml today, and I was semi-surprised to see the "not all elements respond to to_xml" message... I had an array of strings.
My first suggestion is that String would just replace the basic entity chars that XML defines, much like ERB::Util#html_escape: & ==> & < ==> < > ==> > " ==> " ' ==> ' #html_escape would cover this except for the ' case, which appears to be needed as well. Any opinions? Patch + tests would be pretty easy to supply :) Tony --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
