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

Function getSanitizer

packages/core/src/sanitization/sanitization.ts:278–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

276}
277
278function getSanitizer(): Sanitizer | null {
279 const lView = getLView();
280 return lView && lView[ENVIRONMENT].sanitizer;
281}
282
283function getSecurityContext(tagName: string, propName: string): SecurityContext {
284 const [namespace, resolvedTagName] = resolveElement(tagName);

Callers 5

ɵɵsanitizeHtmlFunction · 0.85
ɵɵsanitizeStyleFunction · 0.85
ɵɵsanitizeUrlFunction · 0.85
ɵɵsanitizeResourceUrlFunction · 0.85
ɵɵsanitizeScriptFunction · 0.85

Calls 1

getLViewFunction · 0.90

Tested by

no test coverage detected