(html: string)
| 356 | }; |
| 357 | |
| 358 | const _createTrustedHTML = function (html: string): string { |
| 359 | _assertNotInTrustedTypesPolicy(); |
| 360 | |
| 361 | IN_TRUSTED_TYPES_POLICY++; |
| 362 | try { |
| 363 | return trustedTypesPolicy.createHTML(html); |
| 364 | } finally { |
| 365 | IN_TRUSTED_TYPES_POLICY--; |
| 366 | } |
| 367 | }; |
| 368 | |
| 369 | /* Sign string output when a policy is active and the caller asked for it */ |
| 370 | const _signOutput = function (html: string): string { |
no test coverage detected