angularjs - Angular 2 and   how to show break lines properly -


i have no idea how this. have list of objects 1 of properties description , value has break lines  .

i'm using normal way print in html, take below:

<div class="row" *ngfor="let item of items">    <p>{{item.description}}</p> </div> 

and in result can't see break line, see description below:

line 1 `&nbsp;` line 2 `&nbsp;` line 3  

and should like:

line 1 line 2 line 3 

any idea how solve it?

the &nbsp iso chracter same space shouldnt use write break lines can use br tag , in in binding use [innerhtml] ="ítem.description"


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -