When I add text to my mysql database using a textarea the format of the text is somehow saved (newlines and spaces) this layout isn’t shown in the database itself as far as I know. When i load this string from the database into the a textarea again I get the same format as I inserted. But when I try loading this string into a div it will just show up as one line.
So my question is: How do I set the formatted text in a div?
Define the
<div>to use the same white-space as<textarea>and<pre>uses.