I want to replace "\" with "/" in a javascript string.
var p = "D:\upload\date\csv\sample.csv";
to:
var p = "D:/upload/date/csv/sample.csv";
But I am getting error in first line itself. "SyntaxError: malformed Unicode character escape sequence".
How to do this ? Please help. Thanks.