This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: : Escaping '&' in an HTML link.


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]