Reply
Member
Posts: 3
Registered: ‎11-06-2013

Escaping ampersands in extraOptions

I'm getting the error (Error: Extra Options is invalid.) when passing extraOptions that contain an escaped ampresand like so.

 

<extraOptions><![CDATA[bizam=bizam&foo=b&amp;bar]]></extraOptions>

 

How should the embedded & be escaped so that it doesn't cause the error?

 

Thanks,

Phillip

 

Administrator Administrator
Administrator
Posts: 563
Registered: ‎08-03-2011

Re: Escaping ampersands in extraOptions

 

Hi,

 

It should be escaped as &amp; like how you are doing it on the second place. It will look like this:

<extraOptions><![CDATA[bizam=bizam&amp;foo=b&amp;bar]]?></extraOptions> 

 

 

Thanks,

Joy