fix issue #7366 render custom html element as hiccup no longger working. dompurify remove is attribute from hiccup

This commit is contained in:
Darwis
2022-11-17 12:21:25 +08:00
committed by Gabriel Horner
parent 1caba0359f
commit 7a508dde0a

View File

@@ -3,7 +3,8 @@
(:require ["dompurify" :as DOMPurify]))
(def sanitization-options (clj->js {:ADD_TAGS ["iframe"]
:ALLOW_UNKNOWN_PROTOCOLS true}))
:ALLOW_UNKNOWN_PROTOCOLS true
:ALLOWED_ATTR ["is"]}))
(defn sanitize-html
[html]