Forum OpenACS Development: Re: ad_quotehtml speed improvement
If would use <A href='@url@'>blablabla</A> you would get this url:
<A href='calculate-resistance?volt=2&amp=2<blablabla>/A>This is of course plain nonsense...
However, if you use the correct <A href='@url;noquote@'>blablabla</A> you get:
<A href='calculate-resistance?volt=2&=2'>blablabla</A>... which is the correct way to pass the variables volt and amp to the url.
Quoting is allways wrong within links. URL-encoding is ok. I.e. if you want to pass a variable containing &, you would URL-encode it.
Tom: The relevant document to quote is the SGML standard (for HTML) or the XML standard (for XHTML). Luckily the XHTML standard has a nice little writeup of the issue:
(notice the example given)