How to reflect html tag that is returned from json in ionic


#1

Goodday, i want to display the description and its “bold” word to be bold
how to i display that data from the json applying the tag?? any recommendation or links or advice is a great help :slight_smile:

image

image


#2

You can set the innerHTML of an element like this:

<div [innerHTML]="description"></div>

That will render all your HTML tags of the JSON response :slight_smile:


#3

Thanks a lot mr @saimon