捕获textarea中的换行符(换行符,换行符)

I have a form with a <textarea> and I want to capture any line breaks in that textarea on the server-side, and replace them with a <br/>.

Is that possible?

I tried setting white-space:pre on the textarea's CSS, but it's still not enough.

查看全部
duangua6912
duangua6912
2008/11/14 03:29
  • textarea
  • php
  • html
  • line-breaks
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

4个回复