W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Re: Erroneous 'unescaped &' warning message from CGI urls

From: Martyn J Shaw <mjshaw@uclan.ac.uk>
Date: Tue, 20 Feb 2001 10:36:16 +0000
Message-Id: <sa9248c2.039@gwise-gw1.uclan.ac.uk>
To: bob <bob@oblong.com.au>, html-tidy <html-tidy@w3.org>
Bob

I've seen this argument before somewhere.  Is the full answer that the HTML 4.01 spec says that href attribute takes a URI as an value and a URI is of type CDATA and that a user agent should replace character entities in CDATA sections?

Martyn Shaw

>>> Bob Long <bob@oblong.com.au> 02/18/01 11:27am >>>
----- Original Message ----- 
From: "Chris Hamer-Hodges" <chh@delcam.com>


> ---BUG REPORT---
> 
> If I add a link to a CGI script that takes more than one argument
> eg.
> <a href="cgi-bin/cgi-script?arg1=value1&arg2=value2">some text</a>
> I get a warning from Tidy saying: Warning: unescaped & or unknown entity
> "&arg2"
> 
> -------------------------
> 
> Otherwise great utility :-)
> 
> Chris HH

Tidy is correct. You should really use &amp; rather than simply &.

Bob Long
Received on Tuesday, 20 February 2001 05:37:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:45 GMT