MCPcopy Create free account
hub / github.com/angular/angular / sanitize

Method sanitize

packages/core/test/render3/integration_spec.ts:760–765  ·  view source on GitHub ↗
(context: SecurityContext, value: LocalSanitizedValue | string | null)

Source from the content-addressed store, hash-verified

758 constructor(private _interceptor: (value: string | null | any) => string) {}
759
760 sanitize(context: SecurityContext, value: LocalSanitizedValue | string | null): string | null {
761 if (value instanceof LocalSanitizedValue) {
762 return value.toString();
763 }
764 return this._interceptor(value);
765 }
766
767 bypassSecurityTrustHtml(value: string) {}
768 bypassSecurityTrustStyle(value: string) {}

Callers 6

ɵɵsanitizeHtmlFunction · 0.45
ɵɵsanitizeStyleFunction · 0.45
ɵɵsanitizeUrlFunction · 0.45
ɵɵsanitizeResourceUrlFunction · 0.45
ɵɵsanitizeScriptFunction · 0.45

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected