c# .net Adsense ADO.NET Linq Viruses/security asp.net MVC JQuery Angular-js Node-js SEO Java C++ SQL API Networking vb.net .Net Css JavaScript Generics c#.Net entity framework HTML Website host Website Construction Guide HTTP tutorial W3C tutorial Web Services JSON Psychology Ionic framework Angular ReactJS Python Computer Android
Ionic framework

How to display HTML Code in ionic 4?

| | Html , mobile

My text contains HTML content I wish to display but it only shows the HTML tags along with text.

Previously I used to display normal code,

  {{data?.MoreDetail}}

But result be like below,

In order to render HTML content in ionic 4, we need to use the following innerHTML attribute code,

<div [innerHTML]="data?.MoreDetail"></div>

Afterwards it works fine.