{
  "meta": {
    "canonicalUrl": "https://timetostable.com/feature/api.Sanitizer",
    "bcdVersion": "8.1.11",
    "webFeaturesVersion": "3.48.0"
  },
  "kind": "bcd",
  "bcdFeature": {
    "id": "api.Sanitizer",
    "cat": "api",
    "mdn": "API/Sanitizer",
    "spec": "https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#sanitizer",
    "st": 1,
    "wf": "sanitizer",
    "bl": false,
    "s": {
      "chrome": {
        "v": "146",
        "d": 20522
      },
      "firefox": {
        "v": "148",
        "d": 20508
      },
      "edge": {
        "v": "146",
        "d": 20525
      },
      "chrome_android": {
        "v": "146",
        "d": 20522
      },
      "firefox_android": {
        "v": "148",
        "d": 20508
      },
      "webview_android": {
        "v": "146",
        "d": 20522
      },
      "samsunginternet_android": {
        "v": "31.0",
        "d": 20719
      },
      "opera": {
        "v": "130",
        "d": 20551
      },
      "opera_android": {
        "v": "97",
        "d": 20559
      }
    },
    "notes": [
      {
        "t": "Chrome 105 to Chrome 118 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "chrome"
        ]
      },
      {
        "t": "Edge 105 to Edge 118 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "edge"
        ]
      },
      {
        "t": "Chrome Android 105 to Chrome Android 118 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "chrome_android"
        ]
      },
      {
        "t": "WebView Android 105 to WebView Android 118 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "webview_android"
        ]
      },
      {
        "t": "Samsung Browser 20.0 to Samsung Browser 25.0 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "samsunginternet_android"
        ]
      },
      {
        "t": "Opera 91 to Opera 104 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "opera"
        ]
      },
      {
        "t": "Opera Android 72 to Opera Android 79 (inclusive) supported this interface name with a significantly different specification.",
        "b": [
          "opera_android"
        ]
      }
    ]
  },
  "webFeature": {
    "id": "sanitizer",
    "name": "Sanitizer API",
    "description": "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",
    "groupName": "other",
    "spec": "https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#html-sanitization",
    "baseline": false,
    "compatCount": 14,
    "cats": [
      "api"
    ],
    "compatKeysSample": [
      "api.Document.parseHTML_static",
      "api.Element.setHTML",
      "api.Sanitizer",
      "api.Sanitizer.Sanitizer",
      "api.Sanitizer.allowAttribute",
      "api.Sanitizer.allowElement",
      "api.Sanitizer.get",
      "api.Sanitizer.removeAttribute",
      "api.Sanitizer.removeElement",
      "api.Sanitizer.removeUnsafe",
      "api.Sanitizer.replaceElementWithChildren",
      "api.Sanitizer.setComments",
      "api.Sanitizer.setDataAttributes",
      "api.ShadowRoot.setHTML"
    ],
    "s": {
      "chrome": {
        "v": "146",
        "d": 20522
      },
      "chrome_android": {
        "v": "146",
        "d": 20522
      },
      "edge": {
        "v": "146",
        "d": 20525
      },
      "firefox": {
        "v": "148",
        "d": 20508
      },
      "firefox_android": {
        "v": "148",
        "d": 20508
      }
    }
  }
}