---
id: "sanitizer"
kind: "web-feature"
canonical: "https://timetostable.com/feature/sanitizer"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# Sanitizer API (`sanitizer`)

The Sanitizer API customizes the sanitization of HTML parsed and inserted into the DOM in a way that can prevent cross-site scripting attacks. You can use it with DOM APIs that accept a sanitizer option, such as parseHTML() or setHTML().

- **Group**: other
- **Baseline**: Limited Availability
- **Specification**: https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#html-sanitization
- **Constituent BCD keys**: 14

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Firefox | 148 | 2026-02-24 |
| Firefox for Android | 148 | 2026-02-24 |
| Chrome | 146 | 2026-03-10 |
| Chrome Android | 146 | 2026-03-10 |
| Edge | 146 | 2026-03-13 |

