That's the correct behaviour, the & character has special meaning in
HTML so it needs to be escaped.  Unless it causes a specific problem
I'd suggest ignoring it.

On Oct 14, 2:56 am, rmirabelle <[EMAIL PROTECTED]> wrote:
> the .html() function is rewriting all instances of & to &amp; without
> my permission:
>
> example:
>
> $('#div').html("http://www.coolsite.com?x=1&y=2";);
>
> the div then shows:
>
> http://www.coolsite.com?x=1&y=2
>
> how can I prevent this behavior?
>
> Thanks in advance

Reply via email to