(html: string, transform: (frag: DocumentFragment) => void)
| 1 | export function transformHTML(html: string, transform: (frag: DocumentFragment) => void): string { |
| 2 | const template = document.createElement('template') |
| 3 | template.innerHTML = html |
| 4 | |
| 5 | transform(template.content) |
| 6 | |
| 7 | return template.innerHTML |
| 8 | } |
no test coverage detected