Is it possible to display HTML tags (text with anchors) stored in the $scope
variable on the output view? Take a look at this example. I'm facing an issue where the anchors from my database are sometimes hidden within the text. Thank you for any assistance! :)
Sample HTML:
<div ng-app>
<h2>Html test</h2>
<div ng-controller="TodoCtrl">
<p data-ng-repeat="line in anchors">
{{line}}
</p>
</div>
</div>
Controller Logic:
function TodoCtrl($scope) {
$scope.anchors = [
"<a href='#'>Something</a>",
"Angular ignores html tags :("
];
}