I have an ionic & angular based project. I get variable node from a service. node's body value is HTML. But when I print {{node.body.und[0].value}} with ionic, it prints HTML codes with tags like <ul><li><strong>Title:</strong> some text</li><ul>
Controller and service part of the code:
.controller('NodeCtrl', function($scope, $stateParams, Node) {
    $scope.node = Node.get({nid: $stateParams.nid});
});
.factory('Node', function ($resource) {
    return $resource('some-domain.com/api/node/:nid'+'.json');
})
Ionic template:
<ion-view view-title="{{node.title}}">
  <ion-content>
    <div class="list card">
      <div class="item">
        <h2>{{node.title}}</h2>
      </div>
      <div class="item item-body">
        {{node.body.und[0].value}}
      </div>
    </div>
  </ion-content>
</ion-view>
How can I make ionic print {{node.body.und[0].value}} as HTML instead of with HTML tags like <ul><li><strong>Title:</strong> some text</li><ul>?



{{node.body.und[0].value}}as HTML instead of with HTML tags like<ul><li><strong>Title:</strong> some text</li><ul>" ... I am assuming you mean how can you get it to print as text? Because it is printing it as HTML if you get the tags.ng-bind-html? docs.angularjs.org/api/ng/directive/ngBindHtml<p ng-bind-html="node.body.und[0].value"></p>and it worked as I wanted. Thanks