|
@@ -2,7 +2,8 @@
|
|
"Provide security focused fns like preventing XSS attacks"
|
|
"Provide security focused fns like preventing XSS attacks"
|
|
(:require ["dompurify" :as DOMPurify]))
|
|
(:require ["dompurify" :as DOMPurify]))
|
|
|
|
|
|
-(def sanitization-options (clj->js {:ADD_TAGS ["iframe"]}))
|
|
|
|
|
|
+(def sanitization-options (clj->js {:ADD_TAGS ["iframe"]
|
|
|
|
+ :ALLOW_UNKNOWN_PROTOCOLS true}))
|
|
|
|
|
|
(defn sanitize-html
|
|
(defn sanitize-html
|
|
[html]
|
|
[html]
|