(html: string)
| 313 | }; |
| 314 | |
| 315 | const _createTrustedHTML = function (html: string): string { |
| 316 | _assertNotInTrustedTypesPolicy(); |
| 317 | |
| 318 | IN_TRUSTED_TYPES_POLICY++; |
| 319 | try { |
| 320 | return trustedTypesPolicy.createHTML(html); |
| 321 | } finally { |
| 322 | IN_TRUSTED_TYPES_POLICY--; |
| 323 | } |
| 324 | }; |
| 325 | |
| 326 | /* Sign string output when a policy is active and the caller asked for it */ |
| 327 | const _signOutput = function (html: string): string { |
no test coverage detected