angular - Angular4 [innerHTML] ignores returns -
i got json data output text returns:
now try output with:
<div [innerhtml]="message.content"></div>
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
Post a Comment