(html: string)
| 338 | }; |
| 339 | |
| 340 | const _createTrustedHTML = function (html: string): string { |
| 341 | _assertNotInTrustedTypesPolicy(); |
| 342 | |
| 343 | IN_TRUSTED_TYPES_POLICY++; |
| 344 | try { |
| 345 | return trustedTypesPolicy.createHTML(html); |
| 346 | } finally { |
| 347 | IN_TRUSTED_TYPES_POLICY--; |
| 348 | } |
| 349 | }; |
| 350 | |
| 351 | const _createTrustedScriptURL = function (scriptUrl: string): string { |
| 352 | _assertNotInTrustedTypesPolicy(); |
no test coverage detected