External Interface Question

Hey Guys,

I have an external interface being called with data I am getting from XML. The problem for me here is that if the data from the XML contains any quote characters ("), there is a javascript error thrown because the call looks something like

function(“title “subtitle””); and so it thinks the data is “title " and the subtitle”" is ‘bad data’.

I have tried escaping the strings, but the problem won’t go away. Any ideas?

Thanks,

–d