How to render an angular variable containing HTML in view?

advertisements

I have a data that contains HTML (for exemple I have <b>XXXX</b>) and I would like to display it as:

XXXX

I want this to be rendered as bold when it gets displayed on view.

How can I do that?


In AngularJS you can use ng-bind-html to render the html on view.

it will make your content XXXX bold.