export function extractTitleFromHtml(html: string): string { const match = html.match(/]*>([^<]+)<\/title>/i); return match?.[1]?.trim() ?? ""; } export function isLikelyJSRendered(html: string): boolean { const bodyMatch = html.match(/]*>([\s\S]*?)<\/body>/i); if (!bodyMatch) return false; const textContent = bodyMatch[1] .replace(//gi, "") .replace(//gi, "") .replace(/<[^>]+>/g, "") .replace(/\s+/g, " ") .trim(); const scriptCount = (html.match(/