I have a <textarea> and <button>. When button is pressed the text entered in textarea will be displayed inside of <p></p>.
So I want: when I enter for instance "1<br>2<br>3" in textarea and press button, exactly the same text is displayed in <p> i.e. "1<br>2<br>3" is displayed instead of
1
2
3
, and natural new lines (on Enter press) are displayed as normal newlines.
How to do it???
Thnx in advance