docs/vendor.js
function sanitizeResourceUrl(unsafeResourceUrl) {
    var s = getCurrentSanitizer();
    if (s) {
        return s.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '';
    }
    if (allowSanitizationBypass(unsafeResourceUrl, "ResourceUrl" /* ResourceUrl */)) {
        return unsafeResourceUrl.toString();
    }
    throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');
}
function sanitizeResourceUrl(unsafeResourceUrl) {
    var s = getCurrentSanitizer();
    if (s) {
        return s.sanitize(SecurityContext.RESOURCE_URL, unsafeResourceUrl) || '';
    }
    if (allowSanitizationBypass(unsafeResourceUrl, "ResourceUrl" /* ResourceUrl */)) {
        return unsafeResourceUrl.toString();
    }
    throw new Error('unsafe value used in a resource URL context (see http://g.co/ng/security#xss)');
}
function sanitizeResourceUrl ( unsafeResourceUrl ) { var s = getCurrentSanitizer ( ) ; if ( s ) { return s . sanitize ( SecurityContext . RESOURCE_URL , unsafeResourceUrl ) || '' ; } if ( allowSanitizationBypass ( unsafeResourceUrl , "ResourceUrl" /* ResourceUrl */ ) ) { return unsafeResourceUrl . toString ( ) ; } throw new Error ( 'unsafe value used in a resource URL context (see http://g.co/ng/security#xss)' ) ; }
A `url` sanitizer which only lets trusted `url`s through.

This passes only `url`s marked trusted by calling {@link bypassSanitizationTrustResourceUrl}.

@param unsafeResourceUrl untrusted `url`, typically from the user.
@returns `url` string which is safe to bind to the `src` properties such as `<img src>`, because
only trusted `url`s have been allowed to pass.
A url sanitizer which only lets trusted url s through .