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

Function getSecurityContext

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

Source from the content-addressed store, hash-verified

281}
282
283function getSecurityContext(tagName: string, propName: string): SecurityContext {
284 const [namespace, resolvedTagName] = resolveElement(tagName);
285 return checkSecurityContext(resolvedTagName, propName, namespace);
286}
287
288function resolveElement(tagName: string): [namespace: string | null | undefined, tagName: string] {
289 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