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.
thanks a lot.
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.
thanks a lot.