I\'m using an textarea to send text to my DB.
Screenshot of db:

When displaying text, use nl2br() to convert newlines to tags, i.e., instead of , use .
By default, browsers display newlines as spaces, therefore they have to be converted to tags.
For those who find this useful - please consider using white-space: pre-line, suggested by Emil Vikström. I'm not a web guy anymore and easily can't verify this, but Boaz says in comments that it is supported by all modern browsers. If so, that should be preferred to using nl2br().