On 5/4/07, Christoph Haas <[EMAIL PROTECTED]> wrote: > > Dear list... > > I have created a URL using information from Routes using h.url_for(). > Example: > > /start/page?page_nr=1&called=back > > Now I want to create a link to this URL with h.link_to. What I get is: > > <a href="/start/page?page_nr=1&called=back">foo</a> > > Apparently '&' is escaped to '&' which is what I obviously don't > want. Of course in the case of h.link_to I could just create the > <a href=...> link myself. But my actual code uses h.link_to_remote which > is a bit more complicated and I'd like to use the webhelpers for it. > > I looked into the Webhelpers sources and saw that the URL is not escaped > if it's callable(). What does that mean? And what would be the correct > way to just pass the URL through?
It's doing the right thing. Have a look at my blog post here: http://jjinux.blogspot.com/2006/03/html-escaping-s-in-urls-in-html.html Best Regards, -jj -- http://jjinux.blogspot.com/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
