var str=""; //document.getElementById('commenttxt').value=decodeURIComponent(str); document.getElementById('commentlist').innerHTML=decodeURIComponent(str); //document.write(decodeURIComponent(str));