[ZPT] I don't want "&" to be URL escaped in tal:attributes, how to do?

Janko Hauser jhauser@ifm.uni-kiel.de
Wed, 16 Jan 2002 17:21:26 +0100


I can not reproduce this problem.

<a tal:attributes="href
python:here.absolute_url()+'?test=1&amp;test2=2'">test_link</a>

This works fine for me, or I do not see the problem.

__Janko


Jeff Peterson writes:
 > We ran into this problem on a project just last week.  We were unable to
 > find a way to actually "escape" the ampersand but we were able to work
 > around it using simple direct traversal.  This may or may not be useful to
 > you but it worked for us so I thought I would at least mention it.
 > 
 > There are some examples of how to do this in this how-to:
 > 
 > 	http://www.zope.org/Members/mcdonc/HowTos/direct_traversal
 > 
 > Hope this helps you, let us know how it goes.
 >