L
laredotornado
Hi,
I have this code
document.getElementById(id).innerHTML = val; // val is the value
someone types in a textbox
Problem is, if someone types "<html>", I would like "<html>" to be
displayed, so the value of the "innerHTML" should really be
"<html>" in this example. Is there a JS function (or does
someone have one) that will do HTML characters replacement?
Thanks, - Dave
I have this code
document.getElementById(id).innerHTML = val; // val is the value
someone types in a textbox
Problem is, if someone types "<html>", I would like "<html>" to be
displayed, so the value of the "innerHTML" should really be
"<html>" in this example. Is there a JS function (or does
someone have one) that will do HTML characters replacement?
Thanks, - Dave