This question already has an answer here:
- AngularJS : Insert HTML into view 13 answers
I have a $scope variable like so:
$scope.example = "<h1>Hello</h1>"
When I output this in my view {{example}}
, I want the HTML rendered. At the moment it outputs:
<h1>Hello</h1>
rather than
Hello
Is what I am trying to achieve possible?