mirror of https://github.com/logseq/logseq
fix: remove attributes and protocols
parent
c5ebca26b6
commit
60790763dd
|
@ -2,14 +2,7 @@
|
|||
"Provide security focused fns like preventing XSS attacks"
|
||||
(:require ["dompurify" :as DOMPurify]))
|
||||
|
||||
(def sanitization-options (clj->js {:ADD_TAGS ["iframe"]
|
||||
:ALLOW_UNKNOWN_PROTOCOLS true
|
||||
:ADD_ATTR ["allow"
|
||||
"src"
|
||||
"allowfullscreen"
|
||||
"frameborder"
|
||||
"scrolling"
|
||||
"target"]}))
|
||||
(def sanitization-options (clj->js {:ADD_TAGS ["iframe"]}))
|
||||
|
||||
(defn sanitize-html
|
||||
[html]
|
||||
|
|
Loading…
Reference in New Issue