Paul Konstanski
asked on
Using HTML MarkUp in AngularJS ng-repeat
I am making a call from a database to return data to be passed in an AngularJS ng-repeat phrase. What I cannot figure out is how to pass the HTML characters.
Here' is the HTML CODE:
All works fine, but when I get to a row where the qa.question field is: "What is your <strong>Focus</strong>?"
It renders as in just that way on the Web page. I want it to render as "What is your Focus?
So how do you get HTML characters to work in an ng-repeat phrase.
I know how to do it with ng-bind-html for a single variable. But I cannot figure out if it is possible to do with ng-repeat.
Thanks.
Here' is the HTML CODE:
<div ng-repeat="y in new">
<h1><red>#{{y.qaID}}</red> {{y.qa_question}} <small>({{y.cnt}} votes)</small></h1>
</div>
All works fine, but when I get to a row where the qa.question field is: "What is your <strong>Focus</strong>?"
It renders as in just that way on the Web page. I want it to render as "What is your Focus?
So how do you get HTML characters to work in an ng-repeat phrase.
I know how to do it with ng-bind-html for a single variable. But I cannot figure out if it is possible to do with ng-repeat.
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome.
ASKER