(html: string)
| 94 | // ── GSAP extraction ────────────────────────────────────────────────────────── |
| 95 | |
| 96 | function inlineScriptText(html: string): string { |
| 97 | const doc = new DOMParser().parseFromString(html, "text/html"); |
| 98 | return Array.from(doc.querySelectorAll("script")) |
| 99 | .filter((s) => !s.getAttribute("src")) |
| 100 | .map((s) => s.textContent ?? "") |
| 101 | .join("\n"); |
| 102 | } |
| 103 | |
| 104 | function inlineStyleText(html: string): string { |
| 105 | const doc = new DOMParser().parseFromString(html, "text/html"); |
no test coverage detected