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

Method sanitize

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

Source from the content-addressed store, hash-verified

918 constructor(private _interceptor: (value: string | null | any) => string) {}
919
920 sanitize(context: SecurityContext, value: LocalSanitizedValue | string | null): string | null {
921 if (value instanceof LocalSanitizedValue) {
922 return value.toString();
923 }
924 return this._interceptor(value);
925 }
926
927 bypassSecurityTrustHtml(value: string) {}
928 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