I have a JavaScript variable that I echo out using PHP which is shown like this in the page source:
var db_1 = \'C:\\this\\path\';
When I s
You can use:
echo json_encode('C:\this\path');
json_encode can be used as a filter function for some JavaScript code.
json_encode