我有 htmltext 作为
<p>Here is what some pupils told me about how they prepared for and fared in yesterday's preliminary round.</p>
<hr />
<p>"I will stay calm and try my best. If I do not know a word, I will just have to put something down."</p>
<p><strong>some text</strong></p>
<hr />
<p>"I am more confident than last year because I have experience. I read the newspaper and I looked through the dictionary for difficult words and tagged them."</p>
<p><strong>some text</strong></p>
<hr />
我显示的内容与 textarea.htmlText 相同。
但是 textarea 显示上面的内容,它们之间的空白行太多。有没有办法可以删除文本中的换行符?文本来自服务器端。