<textarea cols='60' rows='8'>This is my statement one.\n This is my statement2</textarea>
<textarea cols='60' rows='8'>This is my statement one.<br/> This is my statement2</textarea>
我尝试了两个,但在渲染html文件时新行没有反映出来.我怎样才能做到这一点?
我如何编写正则表达式来替换<br />或<br>  使用\n.我正在尝试将文本从div移动到textarea,但不希望<br>在textarea中显示,所以我想替换然后用\n.