(unsafeStyle: any)
| 69 | * @codeGenApi |
| 70 | */ |
| 71 | export function ɵɵsanitizeStyle(unsafeStyle: any): string { |
| 72 | const sanitizer = getSanitizer(); |
| 73 | if (sanitizer) { |
| 74 | return sanitizer.sanitize(SecurityContext.STYLE, unsafeStyle) || ''; |
| 75 | } |
| 76 | if (allowSanitizationBypassAndThrow(unsafeStyle, BypassType.Style)) { |
| 77 | return unwrapSafeValue(unsafeStyle); |
| 78 | } |
| 79 | return renderStringify(unsafeStyle); |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * A `url` sanitizer which converts untrusted `url` **string** into trusted string by removing |
no test coverage detected