【发布时间】:2013-08-22 20:20:55
【问题描述】:
ng-bind-html-unsafe 在 Angular 1.2 中被删除
我正在尝试实现一些我需要使用ng-bind-html-unsafe 的东西。在文档和 github 提交中,他们说:
ng-bind-html 提供类似 ng-html-bind-unsafe 的行为(innerHTML 的结果没有 sanitization) 绑定到 $sce.trustAsHtml(string) 的结果时。
你是怎么做到的?
【问题讨论】:
标签: angularjs