我使用文本框允许用户输入他们想要的任何文本,然后我通过电子邮件发送此文本。
我想在textarea文本中添加段落或
例如,如果用户输入此
this is test this is test this is test this is test this is test this is test
this is test this is test this is test this is test this is test
然后电子邮件将以一行显示全文,我希望它看起来像两到三段 像这样的东西
<p> this is test this is test this is test </p>
<p> this is test this is test this is test </p>
我如何在C#中执行此操作
答案 0 :(得分:0)
在按Enter键时添加了textarea \n
。在服务器端将\n
替换为<br/>
。