I want to replace/remove a backslash and an apostrophe (\') in specific ID
HTML
<div id="here">
Example \' Example
</div>
I wrote this Script:
var wert = document.getElementById("here");
function myFunction() {
here.innerHTML = here.innerHTML.replace('\\['"]', '');
}
myFunction();
It doesn't seem to work