// Extracts the parts of the HTML response that downstream checks need. export function parseHtml(html) { const safe = html || '' const headMatch = safe.match(/
/i) const headHtml = headMatch ? headMatch[0] : safe.slice(0, 4000) const jsonLdBlocks = [ ...safe.matchAll(/