Okay thank you, but there still is a problem:
if I use <div [innerHTML]="text"></div>
I get the text from the string but not the styling.
If I use
let div = document.getElementById('text');
div.innerHTML = this.text;
it works, why does the other way not work?