Pass html from controller to view


#1

I have json from an api that I am passing from the controller to the view. The json contains html i.e paragrpah and anchor tags and when it gets displayed in the view the tags display as text rather than format as html. Is it possible to with ionic to pass html to the view rather than straight text?


#2

hey @aldubya check this link
https://docs.angularjs.org/api/ng/directive/ngBindHtml

for ng-bind-html or $sce

https://docs.angularjs.org/api/ng/service/$sce