MCPcopy Create free account
hub / github.com/angular-ui/ui-router / htmlSanitizer

Function htmlSanitizer

test/angular/1.3/angular.js:15245–15247  ·  view source on GitHub ↗
(html)

Source from the content-addressed store, hash-verified

15243 this.$get = ['$injector', function($injector) {
15244
15245 var htmlSanitizer = function htmlSanitizer(html) {
15246 throw $sceMinErr('unsafe', 'Attempting to use an unsafe value in a safe context.');
15247 };
15248
15249 if ($injector.has('$sanitize')) {
15250 htmlSanitizer = $injector.get('$sanitize');

Callers 1

getTrustedFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected