0

Is it possible to add exceptions for angular sanitize to allow custom and core directives?

such as:

ng-click
my-custom-directive
coiso
  • 7,151
  • 12
  • 44
  • 63
  • what does `ng-click` have to do with angular sanitize? What exceptions are you referring to? Question is pretty vague – charlietfl Jan 03 '16 at 23:59
  • If I include an ng-click in the html to be sanitized it gets removed, I would like that it wouldn't – coiso Jan 04 '16 at 00:54
  • 2
    Won't do any good since using `ng-bind-html` doesn't get compiled by angular anyway so the directives are useless Suggest you change your approach – charlietfl Jan 04 '16 at 00:57
  • but there is a way to make the code be compiled by angular though: http://stackoverflow.com/questions/17417607/angular-ng-bind-html-unsafe-and-directive-within-it – coiso Jan 04 '16 at 07:44

1 Answers1

0

angularSnitize have lists of tags that it ignore. See 237 - 266 lines in angular-sanitize directive.

macintoshkrug
  • 36
  • 1
  • 1
  • 8