function parseTitle(html) { const match = html.match(/]*>([^<]*)<\/title>/i); return match ? match[1].trim() : ''; } module.exports = { parseTitle };