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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -