You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The `parseHTML()` method for the `Document` interface and the `setHTML()` methods for the `Element` and `ShadowRoot` interfaces parse and insert HTML into the DOM in a way that can prevent cross-site scripting attacks. The `Sanitizer` API can customize the sanitization process.
3
+
spec: https://wicg.github.io/sanitizer-api/
4
+
compat_features:
5
+
# The main entry points.
6
+
# There are unsafe variants to these methods in `parse-html-unsafe.yml`.
7
+
- api.Element.setHTML
8
+
- api.ShadowRoot.setHTML
9
+
- api.Document.parseHTML_static
10
+
# The Sanitizer interface can optionally be used for custom HTML
0 commit comments