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

Function getSecurityContext

packages/core/src/sanitization/sanitization.ts:296–299  ·  view source on GitHub ↗
(tagName: string, propName: string)

Source from the content-addressed store, hash-verified

294}
295
296function getSecurityContext(tagName: string, propName: string): SecurityContext {
297 const [namespace, resolvedTagName] = resolveElement(tagName);
298 return checkSecurityContext(resolvedTagName, propName, namespace);
299}
300
301function resolveElement(tagName: string): [namespace: string | null | undefined, tagName: string] {
302 tagName = tagName.toLowerCase();

Callers 2

ɵɵsanitizeHtmlFunction · 0.85
getUrlSanitizerFunction · 0.85

Calls 2

checkSecurityContextFunction · 0.90
resolveElementFunction · 0.85

Tested by

no test coverage detected