Menu
Hi,
i am using PHP to fill in data into a javascript application. This is my code:
[CODE]RST.setup({
html:'<a href=”google.com”>Mary’s object</a> ‘;
});
The word Mary’s messes up the code. I can’t switch to ” because of the HTML. This can all be avoided if I add an escape character like this:
[CODE]RST.setup({
html:'<a href=”google.com”>Mary/’s object</a> ‘;
});
I import the HTML content from a third party API. is there a way to add the escape character automatically?
Thanks