[ZPT] escaped strings in attributes

Evan Simpson evan@zope.com
Fri, 05 Oct 2001 15:02:30 -0400


Markus Kemmerling wrote:
 > I would like to replace a href-attribute with a query string containing
 > more than one parameter. I found that the & betwen two parameters is
 > escaped, i.e. becomes &. It seems that this doesn't matter (at
 > least not in the browsers I tested), but I don't think that it is
 > correct HTTP-syntax.

Actually, it is.  Search for "Authors should also escape ampersand within 
attribute values" in http://www.w3.org/TR/PR-html40-971107/charset.html

Cheers,

Evan @ Zope