Skip to content

Commit

Permalink
feat(textAngularSetup): Added a taOptions:forceTextAngularSanitize to…
Browse files Browse the repository at this point in the history
… verify sanitizer provider.
  • Loading branch information
JoelParke committed Jul 16, 2015
1 parent ff19fe1 commit ad04836
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 5 deletions.
3 changes: 3 additions & 0 deletions dist/textAngular-sanitize.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ var $sanitizeMinErr = angular.$$minErr('$sanitize');
function $SanitizeProvider() {
this.$get = ['$$sanitizeUri', function($$sanitizeUri) {
return function(html) {
if (typeof arguments[1] != 'undefined') {
arguments[1].version = 'taSanitize';
}
var buf = [];
htmlParser(html, htmlSanitizeWriter(buf, function(uri, isImage) {
return !/^unsafe/.test($$sanitizeUri(uri, isImage));
Expand Down
2 changes: 1 addition & 1 deletion dist/textAngular-sanitize.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ad04836

Please sign in to comment.