Add a linebreak in an HTML text area

前端 未结 8 1740
Happy的楠姐
Happy的楠姐 2020-12-01 20:58

How can i add a line break to the text area in a html page? i use VB.net for server side coding.

相关标签:
8条回答
  • 2020-12-01 21:30

    Escape sequences like "\n" work fine ! even with text area! I passed a java string with the "\n" to a html textarea and it worked fine as it works on consoles for java!

    0 讨论(0)
  • 2020-12-01 21:31

    If you're inserting text from a database or such (which one usually do), convert all "<br />"'s to &vbCrLf. Works great for me :)

    0 讨论(0)
提交回复
热议问题