Is there a way to detect things such as new paragraphs and line breaks when storing data from an HTML form textarea in a database which is then output dynamically.
Basically, I would like for users to be able to paste in chunks of text (or type manually) and for the basic formatting, if not all, to be preserved when it is output. Currently I just get one long paragraph of text.