Ionic - Problems Pulling PHP Database Data

0

Hello, I would like to know how I can pull the data from the database already with the tags in html.

I write the data and they come normally, but my table is composed by title, content and in this content I put texts like this:

<p>exemplo</p><p>exemplo</p><p><strong>exemplo</strong></p><p>exemplo</p>

When I pull it on ionic with:

<div id="adwaa4fs"> {{dados[0].conteudo}} </div>

It shows on the screen:

<p>exemplo</p><p>exemplo</p><p><strong>exemplo</strong></p><p>exemplo</p>

and wanted him to show: example example example example

type already with html tags worked, can anyone help me?

    
asked by anonymous 12.02.2018 / 13:42

1 answer

0

Use this property: [innerHTML]

<div [innerHTML]="dados[0].conteudo"></div>
    
12.02.2018 / 14:33