How to preserve line breaks in the database on user submitted text?
- by Crashalot
Users enter text through a text area element, much like we enter questions on StackOverflow.
What's the best way to preserve the line spacing in the database so that it can be reproduced on the front end? The idea is the text should appear with the same line breaks and blank lines as entered originally by the user.