OK this should be fairly simple...
Using angular. I output a text, which has been edited with a textarea:
{{model | newline2br}}
If I don't add the filter, all new lines are just ignored.
So I did some googling, and wrote a filter, newline2br,
which does just that - replacing new lines with <br />
But now the text is being displayed with literal <br />!
This is the output in the inspection window:
<div ng-show="showText" ng-mouseleave="showText = false" class="textwrapper ng-hide">asdjfhaslkjdfh aoiuyqoiweury iufyaoiusydf oiuaysdfiouy aiuysdfoiuy asdfo iuyasdf iouyasdfoiuy asdoifuy aoiusydf oiauysdfoiuays df oiauysdf iouaysdofiuy asioduyf aoiusydf oiauysdfo iuyasdoiufy aoisudyf oiuaysdifuy asdoiufysf<br />hello this is cool<br />I just found out that I can do shift-enter!<br />now I solved the problem with this... :))))</div>
Why is that? How do I write the filter correctly so that the div displays the new lines?