RE: [xsl] : Escaping '&' in an HTML link.

Subject: RE: [xsl] : Escaping '&' in an HTML link.
From: Andreas Waechter <A.Waechter@xxxxxxxxx>
Date: Tue, 31 Jul 2001 08:51:29 +0200
> But this link fails when it encounters a value with "&" in it e.g.
> Star&Bucks fails because of the '&' in between.
> Is there any to escape the '&' so that the URL is completely 
> and properly
> formed?
> I tried "disable-output-escaping" but it didnot seem to work.

Which of the two versions do you get?
1. <a href="http://www.somewhere.com/?foo=bar&amp;bar=foo";>clickme</a>
2. <a href="http://www.somewhere.com/?foo=bar&bar=foo";>clickme</a>

According to http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2
only the first one is correct HTML though most browsers can work with
version 2 as well.

Andreas

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread