mirror of https://github.com/logseq/logseq
fix issue #7366 render custom html element as hiccup no longger working. dompurify remove `is` attribute from hiccup
parent
1caba0359f
commit
7a508dde0a
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue