I have this string:
http:\/\/www.emptyurl.com\/
And i want to change the url to :
http://www.emptyurl.com/
With :
url = url.replace(/\\//gi, "/");
But it give me empty string.
Any idea how i can fix it?
I have this string:
http:\/\/www.emptyurl.com\/
And i want to change the url to :
http://www.emptyurl.com/
With :
url = url.replace(/\\//gi, "/");
But it give me empty string.
Any idea how i can fix it?