This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: : Escaping '&' in an HTML link.
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] : Escaping '&' in an HTML link.
- From: Andreas Waechter <A dot Waechter at logics dot de>
- Date: Tue, 31 Jul 2001 08:51:29 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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&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