Json decode!


#1

I have made a file but somehow JSON not decode the exact HTML tag:

Demo:

http://mydevfactory.com/~appfactory/ujjal/test/#/app/features

CLICK HERE GET MY DETAILS:

Script:

    .controller('PlaylistsCtrl', function($scope, $ionicModal, $timeout, $ionicSlideBoxDelegate, $ionicHistory, $http, $sce) {
        $scope.getData = function() {
            $http.get("http://addaonline.in/json-page-content/?id=544")

                .success(function (response) {	$scope.names = $sce.trustAsHtml(response.content);
                                              return $sce.trustAsHtml(response.content);

                                             })
        }
    });

#2

you have to use ngBindHtml in your template to let angularjs interpret the content as html and not as ordinary string:
https://docs.angularjs.org/api/ng/directive/ngBindHtml


#3

I used it:
ng-bind-html=“names”