function sanitizeUrl(url) { let u = decodeURI(url).trim().toLowerCase(); if (u.startsWith("javascript:")) return "about:blank"; return url; }