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

Method sanitize

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

Source from the content-addressed store, hash-verified

897 constructor(private _interceptor: (value: string | null | any) => string) {}
898
899 sanitize(context: SecurityContext, value: LocalSanitizedValue | string | null): string | null {
900 if (value instanceof LocalSanitizedValue) {
901 return value.toString();
902 }
903 return this._interceptor(value);
904 }
905
906 bypassSecurityTrustHtml(value: string) {}
907 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