After learning about ngSanitize
and ng-bind-html
, I am wondering if I can implement it within a ng-repeat
. In my scenario, the logic looks like this:
<div ng-repeat="(k, v) in specs.webdev">
<h3>{{::v["job-title"]}}</h3>
<p>{{::v["job-body"]}}</p>
United Kingdom Apply Here:
<p>{{::v["job-apply"]}}</p>
</div>
The data stored in the variable specs
is retrieved from a JSON file using $http.get
and parsed with .then
. The values of "job-title"
, "job-body"
", and "job-apply
" may contain HTML tags that need to be displayed.
I am specifically interested in how I can utilize ng-bind-html
in this context.