I have to allow the user to enter carriage returns in text areas; something like:
Sentence 1
Sentence 2
…
I have to persist those carriage returns when loading and saving data.
I use jQuery on the client side, and .NET on the server. Any suggestions on how to approach?
Thanks.
If by “persist” the line breaks (
CRLF) you mean that you want to display it properly, as SO does, you need to remeber to replace theCRLFpair with<br/>CRLF.Otherwise, all your text will appear sequentially.