MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / inlineScriptText

Function inlineScriptText

packages/cli/src/commands/keyframes.ts:96–102  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

94// ── GSAP extraction ──────────────────────────────────────────────────────────
95
96function 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
104function inlineStyleText(html: string): string {
105 const doc = new DOMParser().parseFromString(html, "text/html");

Callers 1

surfaceCompositionFunction · 0.85

Calls 2

fromMethod · 0.80
getAttributeMethod · 0.65

Tested by

no test coverage detected