Skip to content

Commit ee01566

Browse files
committed
New version
1 parent 5a4846e commit ee01566

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

angular-diff.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
angular.module('diff', [])
4-
.filter('diff', function () {
4+
.filter('diff', function ($sce) {
55

66
/*
77
* Javascript Diff Algorithm
@@ -173,7 +173,7 @@ angular.module('diff', [])
173173

174174
// Actual filter
175175
return function(input, match) {
176-
return diffString(input, match);
176+
return $sce.trustAsHtml(diffString(input, match));
177177
};
178178
});
179179

angular-diff.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)