Angular 2: How do you render HTML from a JSON response without displaying the tags to the user? [duplicate] Angular 2: How do you render HTML from a JSON response without displaying the tags to the user? [duplicate] angular angular

Angular 2: How do you render HTML from a JSON response without displaying the tags to the user? [duplicate]


In Angular2 you can use property binding to access properties of DOM elements, in your case:

<div [innerHTML]="post.body"></div>