Ionic-problems pulling data from PHP database

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

I pucho the data and they come normally, porem ha My Table is composed of 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 into the Ionic with:

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

It shows on 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 ?

Author: Shog9, 2018-02-12

1 answers

Use this property: [innerHTML]

<div [innerHTML]="dados[0].conteudo"></div>
 0
Author: Diego Souza, 2018-02-12 13:33:56