How to handle line breaks in textarea?

Hi, by following the app development tutorial I recognized, that line breaks in the textarea are not shown if the content is loaded from the database. Everything is shown in one line. I tried to replace \n by \n in the script but does not have any effect. I assume this is because the content is loaded with handlebar? How do I handle the content in the right way that it shows up in the textarea correctly?

Thx! Andy

If you want to use jQuery:

$('.someClass').html(string.replace("\n","<br />"))

For angular it’s abit different, you still have to replace the string.
Then you bind it to an element using ng-bind-html