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

pull/7336/head^2
Darwis 2022-11-17 12:21:25 +08:00 committed by Gabriel Horner
parent 1caba0359f
commit 7a508dde0a
1 changed files with 2 additions and 1 deletions

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]