HTML textarea的阅读换行符 [英] HTML Textarea reading newlines
本文介绍了HTML textarea的阅读换行符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个HTML textarea的,将接受文本大块。 textarea的需要读取换行符。
I have an HTML textarea that will accept a large block of text. The textarea needs to read newlines.
例如。如果有人类型如下:
For example. If someone types the following:
堆栈溢出是太酷了。
我喜欢它。
当我将它保存到数据库,然后再打印出来,其表现为:
When I save it to the database and print it out again, it is shown as:
堆栈溢出是太酷了。我喜欢它。
Stack overflow is so Cool. I love it.
我需要换行(回车)被记录下来。
I need the newline (enter) to be recorded.
任何人都知道该怎么办呢?
Anyone know how to do it?
推荐答案
替换的CKEditor或FCKEditor的启用控制,采取和总HTML保存为每供将来使用和显示用户输入HTML文本区域。
Replace the HTML Text Area with CKEditor or FCKEditor Enabled control which take and save total html as per user entry for further use and display.
这篇关于HTML textarea的阅读换行符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文