I was doing some javascript while I noticed i can't replace a "<" word inside an html tag such as
<label id="label" > <eraseme> </label>
document.getElementById('label').innerHTML = document.getElementById('label').innerHTML.replace("<eraseme>", "Replaced");
Any solution ?
<in invalid HTML automatically. Have you tried<?<never existed.innerHTMLcontains, instead of actually looking at what it contains. Useconsole.log( document.getElementById('label').innerHTML);.