I have a Rails Builder template:
# in app/views/foos/index.xml.builder:
xml.Module do |mod|
...
mod.Content :type => 'url',
:href => foos_url(:bar => 'baz',
:yoo => 'hoo')
end
(It creates the XML for an OpenSocial Module file, but that's not important.)
The problem is that the rendered XML looks like this:
<Module>
...
<Content type="url" href="http://myapp.com/foos?bar=baz&amp;amp;yoo=hoo"/>
</Module>
That URL suffix should be "bar=baz&yoo=hoo
." How do I keep Builder from escaping the amerpsand?
Later
Perhaps the URL suffix should be "bar=baz&yoo=hoo
" in the source for XML-validity rules, but certainly it shouldn't be double-escaped, should it?