angular - Angular4 [innerHTML] ignores returns -


i got json data output text returns: enter image description here

now try output with:

<div [innerhtml]="message.content"></div> 

but result this: enter image description here

what can do, show returns?

the [innerhtml] render html, when saying returns i'm assuming referring \r\n carriage returns , line feeds. not html.

what need pass in html \r\n example <br />


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -