How can I cleanly replace all forward slashes "/" with "/ " in a page with javascript? I tried the following code:
document.body.innerHTML = document.body.innerHTML.replace(regstr, "/ ");
But that seems to replace all occurrences of the "/" in the closing tags "</" of the HTML source code.
How to negate "</" but find all "/"?
Thanks.
document.body.innerHTML = document.body.innerHTML.replace(regstr, "/ ");
But that seems to replace all occurrences of the "/" in the closing tags "</" of the HTML source code.
How to negate "</" but find all "/"?
Thanks.