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

angular - DownloadURL return null in below code -

meteor - inserting data to database gives error "insert failed: Method '/texts/insert' not found" -