MCPcopy Index your code
hub / github.com/angular/angular / sanitize

Method sanitize

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

Source from the content-addressed store, hash-verified

772 constructor(private _interceptor: (value: string | null | any) => string) {}
773
774 sanitize(context: SecurityContext, value: LocalSanitizedValue | string | null): string | null {
775 if (value instanceof LocalSanitizedValue) {
776 return value.toString();
777 }
778 return this._interceptor(value);
779 }
780
781 bypassSecurityTrustHtml(value: string) {}
782 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