# Names routes double escape html?

**URL:** <https://www.ruby-forum.com/t/names-routes-double-escape-html/88105>\
**Category:** Rails\
**Created:** [March 8, 2007, 8:16am UTC](https://www.ruby-forum.com/t/names-routes-double-escape-html/88105 "2007-03-08T08:16:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benjohnson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3ec8ea/32.png) [@benjohnson](https://www.ruby-forum.com/u/benjohnson)\
**Post date:** [March 8, 2007, 8:16am UTC](https://www.ruby-forum.com/t/names-routes-double-escape-html/88105/1 "2007-03-08T08:16:43Z")

</div>

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.
