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
The other XSS-safe methods, {{domxref('ShadowRoot.setHTML()')}} and {{domxref('Document/parseHTML_static','Document.parseHTML()')}}, are used in the same way.
@@ -54,7 +54,7 @@ For example, in the following sanitizer all safe elements are allowed, and we fu
targetElement.log(targetElement.innerHTML); // This highlighting isn't needed
214
+
console.log(targetElement.innerHTML); // This highlighting isn't needed
215
215
```
216
216
217
217
As with elements and attributes, you can also specify the replacement elements with a namespace, or use the {{domxref("Sanitizer.replaceElementWithChildren()")}} method:
0 commit comments