I need to show a string like value='dummy' inside an input type=text. Which is the correct way to do it?
If i use <input type=text value='+escape(str)+"'> I get value%3D%27dummy%27. If I don’t escape I do not see anything after the first quote. I would like to see the string in the correct way.
You need to use unescape in this case, try
http://www.w3schools.com/jsref/jsref_unescape.asp