(html: string)
| 258 | }; |
| 259 | |
| 260 | const _createTrustedHTML = function (html: string): string { |
| 261 | _assertNotInTrustedTypesPolicy(); |
| 262 | |
| 263 | IN_TRUSTED_TYPES_POLICY++; |
| 264 | try { |
| 265 | return trustedTypesPolicy.createHTML(html); |
| 266 | } finally { |
| 267 | IN_TRUSTED_TYPES_POLICY--; |
| 268 | } |
| 269 | }; |
| 270 | |
| 271 | const _createTrustedScriptURL = function (scriptUrl: string): string { |
| 272 | _assertNotInTrustedTypesPolicy(); |
no test coverage detected
searching dependent graphs…