We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ec23b8 commit 700d24fCopy full SHA for 700d24f
1 file changed
client/public/sandbox_proxy.html
@@ -30,8 +30,13 @@
30
const ALLOWED_ORIGINS = [];
31
32
function sanitizeHtml(html) {
33
- if (window.DOMPurify && typeof window.DOMPurify.sanitize === "function") {
34
- return window.DOMPurify.sanitize(html, { RETURN_TRUSTED_TYPE: false });
+ if (
+ window.DOMPurify &&
35
+ typeof window.DOMPurify.sanitize === "function"
36
+ ) {
37
+ return window.DOMPurify.sanitize(html, {
38
+ RETURN_TRUSTED_TYPE: false,
39
+ });
40
}
41
42
// If DOMPurify is not available, do not attempt to sanitize manually.
0 commit comments