aboutsummaryrefslogtreecommitdiffstats
path: root/src/ng/directive/ngBind.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ng/directive/ngBind.js')
-rw-r--r--src/ng/directive/ngBind.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/directive/ngBind.js b/src/ng/directive/ngBind.js
index 9e642ac2..13394f20 100644
--- a/src/ng/directive/ngBind.js
+++ b/src/ng/directive/ngBind.js
@@ -136,8 +136,8 @@ var ngBindTemplateDirective = ['$interpolate', function($interpolate) {
var ngBindHtmlDirective = ['$sce', function($sce) {
return function(scope, element, attr) {
element.addClass('ng-binding').data('$binding', attr.ngBindHtml);
- scope.$watch($sce.parseAsHtml(attr.ngBindHtml), function ngBindHtmlWatchAction(value) {
- element.html(value || '');
+ scope.$watch(attr.ngBindHtml, function ngBindHtmlWatchAction(value) {
+ element.html($sce.getTrustedHtml(value) || '');
});
};
}];