I have a paragraph
<p>hello<br>wor l d</p>
then I want show the paragraph's html in another textarea use jquery html() method
$(function () {
var temp = $('p').html();
$("textarea").html(temp);
});
but the result is
hello<br>wor l d
Why does <br> not work? I didn't change any html.
and<br>rendered as space and line break?