MCPcopy Index your code
hub / github.com/angular/angular / unwrapSafeValue

Function unwrapSafeValue

packages/core/src/sanitization/bypass.ts:102–106  ·  view source on GitHub ↗
(value: T | SafeValue)

Source from the content-addressed store, hash-verified

100export function unwrapSafeValue(value: SafeValue): string;
101export function unwrapSafeValue<T>(value: T): T;
102export function unwrapSafeValue<T>(value: T | SafeValue): T {
103 return value instanceof SafeValueImpl
104 ? (value.changingThisBreaksApplicationSecurity as any as T)
105 : (value as any as T);
106}
107
108export function allowSanitizationBypassAndThrow(
109 value: any,

Callers 11

sanitizeMethod · 0.90
ɵɵsanitizeHtmlFunction · 0.90
ɵɵsanitizeStyleFunction · 0.90
ɵɵsanitizeUrlFunction · 0.90
ɵɵsanitizeResourceUrlFunction · 0.90
ɵɵsanitizeScriptFunction · 0.90
toStylingKeyValueArrayFunction · 0.90
styleKeyValueArraySetFunction · 0.90
normalizeSuffixFunction · 0.90
sanitizeMethod · 0.85
unwrapSafeUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…