angular.js ng-repeat li items with html content

前端 未结 7 1750
挽巷
挽巷 2020-12-13 18:34

I have a model that comes back from the server which contains html instead of text (for instance a b tag or an i tag)
when I use ng-repeat to built a list out of it i

7条回答
  •  感动是毒
    2020-12-13 18:56

    Note that ng-bind-html-unsafe is no longer suppported in rc 1.2. Use ng-bind-html instead. See: With ng-bind-html-unsafe removed, how do I inject HTML?

提交回复
热议问题