91
rated 0 times
[
96]
[
5]
/ answers: 1 / hits: 16068
/ 11 Years ago, wed, september 4, 2013, 12:00:00
How do replace backslash double quote (e.g. ) in a string?
The code below does not work.
<!DOCTYPE html>
<html>
<head>
</head>
<script type=text/javascript>
var myVar = 'Things You Should Know';
document.write(myVar.replace(/\/g, '|'));
</script>
<body>
<br>hello
</body>
</html>
More From » javascript