(unsafeStyle: any)
| 83 | * @codeGenApi |
| 84 | */ |
| 85 | export function ɵɵsanitizeStyle(unsafeStyle: any): string { |
| 86 | const sanitizer = getSanitizer(); |
| 87 | if (sanitizer) { |
| 88 | return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || ''; |
| 89 | } |
| 90 | if (allowSanitizationBypassAndThrow(unsafeStyle, BypassType.Style)) { |
| 91 | return unwrapSafeValue(unsafeStyle); |
| 92 | } |
| 93 | return renderStringify(unsafeStyle); |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing |
no test coverage detected