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

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 UTC