Two suggestions to solving this problem:
SOLUTION 1: <div style="white-space:pre;">{database text}</div>
or <pre>{database text}</pre>
This is good solution if your text has no html tags or css properties. Also allows to maintain tabs for example.
SOLUTION 2: Replace \n
with <p></p> or <br/>
This is a solution if you would just like to add break-lines, without losing other text properties or formatting.
An example in php would be $text = str_replace("\n","<br />",$database_text);
You can also use <p></p>
or <div></div>
, but this requires a bit more text parsing.