I have JSON variables that contain HTML.
By doing: {{source.HTML}}
Angular is showing <
and >
instead of <
and >
.
What can I do to have Angular render the actual HTML?
UPDATE:
This is my controller:
app.controller('objectCtrl', ['$scope', '$http', '$routeParams',
function($scope, $http, $routeParams) {
var productId = ($routeParams.productId || "");
$http.get(templateSource+'/object?i='+productId)
.then(function(result) {
$scope.elsevierObject = {};
angular.extend($scope,result.data[0]);
});
}]);
Inside my HTML i can then use:
<div>{{foo.bar.theHTML}}</div>