MCPcopy
hub / github.com/textAngular/textAngular / _sanitize

Function _sanitize

src/taBind.js:364–366  ·  view source on GitHub ↗
(unsafe)

Source from the content-addressed store, hash-verified

362 // catch DOM XSS via taSanitize
363 // Sanitizing both ways is identical
364 var _sanitize = function(unsafe){
365 return (ngModel.$oldViewValue = taSanitize(taFixChrome(unsafe, _keepStyles), ngModel.$oldViewValue, _disableSanitizer));
366 };
367
368 // trigger the validation calls
369 if(element.attr('required')) ngModel.$validators.required = function(modelValue, viewValue) {

Callers

nothing calls this directly

Calls 1

taFixChromeFunction · 0.85

Tested by

no test coverage detected