That was it. I used the following in the PHP and didn't have to
convert it back in the Javascript.
Here's what I did.

preg_replace("%&(?!amp;)%i", "&", $value);

Thank you for the help.

On Jul 2, 6:00 pm, James <james.gp....@gmail.com> wrote:
> I think it is reserved in XML. Try to use PHP to convert all & to
> &amp; on server-side.
> Then you can decode it back on the client-side, if necessary.
> Try that and see if it works.
>
> On Jul 2, 10:07 am, Kendall <kendall.cro...@gmail.com> wrote:
>
> > I've found a situation where the callback function won't run if there
> > is a & in the returned XML. I am calling PHP on the server side and
> > passing the input text. I can see through FireBug that the result set
> > is created, but the callback never runs. The callback will run if the
> > & is not present in the XML.
>
> > Does the & mean something special to XML or jQuery? Is there a way to
> > escape the & character?

Reply via email to