In Angular, why doesn't line breaks affect the HTML?

Viewed 87

In my Angular 6 application, I have the following HTML snippet:

<p [innerHTML]="description"></p>

The above is rendered like this:

enter image description here

Why doesn't the line breaks "show" in the browser?

Note! I'm using [innerHtml] because the description variable can sometimes contain html.

Also, I have tried string replacing line breaks with <br> tags, but had no effect.

1 Answers
Related