Link to home
Start Free TrialLog in
Avatar of Paul Konstanski
Paul KonstanskiFlag for United States of America

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:
<div ng-repeat="y in new">
      	<h1><red>#{{y.qaID}}</red> {{y.qa_question}} <small>({{y.cnt}} votes)</small></h1>
 </div>

Open in new window


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
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Paul Konstanski

ASKER

Thank you. That was the missing ingredient that I wasn't finding.
You are welcome.