How do I save user-entered line breaks from a HTML element to a database?
It always removes the line breaks.
When displaying the content you need to convert line breaks into tags, otherwise the web browser won't display them. This is probably why you think they aren't being saved. If you're using PHP, use the nl2br() function to do this. In other languages you could do a string replace, replacing all occurrences of "\n" with ".
"