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

string - Using python and postgres, variables within execute function? -

git - TortoiseGit does not show commit log properly -