I need to be able to render some HTML tags inside a textarea (namely , , , ) but textareas only interpret their content as text. Is
I have the same problem but in reverse, and the following solution. I want to put html from a div in a textarea (so I can edit some reactions on my website; I want to have the textarea in the same location.)
To put the content of this div in a textarea I use:
var content = $('#msg500').text();
$('#msg500').wrapInner('');
here some html tags.