Names routes double escape html?


#1

Is anyone else having this problem?

<%= link_to_function(
“Some link”,
“alert(‘some action here’);” + remote_function(:url =>
named_route_url(:arg1 => “test”, :arg2 => “test”)).gsub(/&/, ‘&’)
) %>

Notice the .gsub(/&/, ‘&’).

I have to do this otherwise I get params[“amp;arg1”] instead of
params[“arg1”].

Any ideas why it’s double escaping?

Thanks for the help.