Search code examples
javascriptangularjsngsanitize

ngSantize not working correctly with ng-bind-html


ngSantize not working right now, <ul ng-bind-html="{{group.content}}"></ul> is blank when there should be content in there. When you open Dynamic Group Header - 2 it should say

  • Dynamic Group Body - 2
  • But it's blank. What am I doing wrong here?

    Here's a plunkr: http://plnkr.co/edit/SOFFK6cdianFADhoWoIJ?p=preview


    Solution

  • ng-bind-html expects an expression so this should be

    <ul ng-bind-html="group.content"></ul>