(html: string)
| 347 | }; |
| 348 | |
| 349 | const _createTrustedHTML = function (html: string): string { |
| 350 | _assertNotInTrustedTypesPolicy(); |
| 351 | |
| 352 | IN_TRUSTED_TYPES_POLICY++; |
| 353 | try { |
| 354 | return trustedTypesPolicy.createHTML(html); |
| 355 | } finally { |
| 356 | IN_TRUSTED_TYPES_POLICY--; |
| 357 | } |
| 358 | }; |
| 359 | |
| 360 | const _createTrustedScriptURL = function (scriptUrl: string): string { |
| 361 | _assertNotInTrustedTypesPolicy(); |
no test coverage detected