Having problems with strings in HTML

Walter Dörwald walter at livinglogic.de
Tue Jun 27 11:20:26 EDT 2006


Richard Brodie wrote:
> "Sion Arrowsmith" <siona at chiark.greenend.org.uk> wrote in message 
> news:gLB*BXekr at news.chiark.greenend.org.uk...
> 
>>> By the way, you _do_ realize that your "&" characters should be escaped
>>> as "&", don't you?
>> No they shouldn't. They part of the url, which is (IIRC) a CDATA
>> attribute of the A element, not PCDATA.
> 
> It is CDATA but ampersands still need to be escaped. 

Exactly. See
http://www.w3.org/TR/html4/appendix/notes.html#ampersands-in-uris

Bye,
   Walter Dörwald



More information about the Python-list mailing list