Is There A Javascript Equivalent Of Htmlencode / Htmldecode From Asp.net?
The problem is this: You have a textbox, you type in some text, send it to the server. On another page, that value is retrieved and displayed on screen in a textbox and a label. It
Solution 1:
Instead of trying to turn a string of text into HTML and then adding it to the document using innerHTML; use standard DOM methods.
myElement.appendChild(
document.createTextNode(myString)
);
Post a Comment for "Is There A Javascript Equivalent Of Htmlencode / Htmldecode From Asp.net?"