IT Certificaions

Google Cloud Platform

Monday, July 2, 2012

Relace all backslash (\) from a string using java script


Use split and join method...

var myText="Hello \I\am java\script";


alert(myText.split('\\').join(' '));