I'm getting some text from a database, which comes from a text editor. So it can have styling or lay-out (read: bold text, line breaks, etc). An example of the text:
hallo<br>wereld<br>
Without entities it looks like:
hallo<br>wereld<br>
How can i put this in a contenteditable div so that it looks like this:
hallo
wereld
Preferably an answer in Angular2 context, though a correct answer is also aprreciated in plain JS.
Edit:
<div #contentEditable contenteditable="true" cvContenteditableModel [model]="getContent()" (modelChange)="setContent()" autofocus></div>