I feed a string to my textarea.
The string contains HTML strings, such as ©, é, etc.
I need these strings to be displayed as such (©, é) and not be turned into © and é respectively.
How would I do it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Escape them properly, that is turn
&into&in this case.Though, if you feed them using the
.valueassignment, your problem is not withtextareaand your string is deentitified before getting into javascript variable.