On Tue, Jul 24, 2001 at 06:07:03PM -0700, Randal L. Schwartz wrote:
> >>>>> "Paul" == Paul Campbell <[EMAIL PROTECTED]> writes:
> 
> Paul> <a href="helpdesk.cgi?action=test_modify&name=$unique_id">
> >> 
> >> That's illegal HTML.  You need "&" encoded as "&amp;" there.
> 
> Paul> If I was trying to *display* the ampersand in the browser then yes.
> Paul> In this instance it is part of a URL, which isn't 'displayed' and
> Paul> doesn't get interpreted the same way.
> 
> Sure it does.  HTML entities are required *for attributes* as well as
> plain text.
> 
> Paul> For example:
> 
> Paul> <p>
> Paul>         <a href="http://www.somewhere.com/script?page=2&mode=examples";>
> Paul>                 Page 2 &amp; examples
> Paul>         </a>
> Paul> </p>
> 
> You're getting the benefit of error-correction.
> 
> Try that again setting the variable "copy" to "3".
> Or "amp" to 7.
> 
> Don't abuse the error correction.  Just *code it right*.

I stand corrected.  Thanks.

-- 
Paul Campbell (Sourceforge) <[EMAIL PROTECTED]>
http://www.kemitix.uklinux.net   SETI@Home Units: 272
jupiter: 9:02am up 6 days, 22:53, 5 users, load average: 2.59, 2.00, 1.64
My Inner Child Just Threw Up!

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to