Friday, 13 September 2013

html special symbols is displayed as characters

html special symbols is displayed as characters

I've been trying to set content of a text input dynamically using JS, the
problem I encountered is I can not have the browser render the special
symbols rather than chars so for example
document.getElementById("textField").value = "nbsp";
Instead of displaying a space it displays &nbsp, anybody got any idea?
Thanks a lot

No comments:

Post a Comment