Use JavaScript to stripslashes ? possible
问题 I'm using ajax to grab a URL. The problem is the URL has slashes in it and when the JQuery load takes place afterwords it will not load the page. AJAX success bit: success: function(data) { $('#OPTcontentpanel').load(data.OPTpermalink); PHP echo json_encode( array('OPTpermalink'=>$OPTpermalink,)); AND the response http:\/\/www.divethegap.com\/update\/options\/padi-open-water\/ So need to strip the slashes. I know how to do it in PHP but not in AJAX JavaScript. Any ideas? Marvellous 回答1: A new