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

Function inlineStyleText

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

Source from the content-addressed store, hash-verified

102}
103
104function inlineStyleText(html: string): string {
105 const doc = new DOMParser().parseFromString(html, "text/html");
106 return Array.from(doc.querySelectorAll("style"))
107 .map((s) => s.textContent ?? "")
108 .join("\n");
109}
110
111function num(v: number | string | undefined): number | null {
112 if (typeof v === "number") return v;

Callers 1

surfaceCompositionFunction · 0.85

Calls 1

fromMethod · 0.80

Tested by

no test coverage detected