跳转到内容

浏览器原生 xss 过滤器

// XSS 🧨
$div.innerHTML = `<em>hello world</em><img src="" onerror=alert(0)>`
// Sanitized ⛑
$div.innerHTML = `<em>hello world</em><img src="">`

具体提案在: Sanitizer API