Render raw HTML in Angular To support things like styles, you have to run the data through $sce: Controller: (ensure you reference $sce in your controller) $scope.htmlData = $sce.trustAsHtml(data); HTML Page: Then use ng-bind-html to render the HTML: <span ng-bind-html="htmlData "></span>
Created By: amos 10/30/2015 12:09:11 PM Updated: 10/30/2015 12:09:19 PM
|
|