(html: string)
| 262 | }; |
| 263 | |
| 264 | const _createTrustedHTML = function (html: string): string { |
| 265 | _assertNotInTrustedTypesPolicy(); |
| 266 | |
| 267 | IN_TRUSTED_TYPES_POLICY++; |
| 268 | try { |
| 269 | return trustedTypesPolicy.createHTML(html); |
| 270 | } finally { |
| 271 | IN_TRUSTED_TYPES_POLICY--; |
| 272 | } |
| 273 | }; |
| 274 | |
| 275 | const _createTrustedScriptURL = function (scriptUrl: string): string { |
| 276 | _assertNotInTrustedTypesPolicy(); |
no test coverage detected