mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
fix: Database isn't escaped when dumped in the published HTML file
Related to #1100
This commit is contained in:
@@ -30,15 +30,3 @@
|
||||
|
||||
;; Example 2:
|
||||
;; <div style="padding: 20px; opacity: 0;height: 20px;" onmouseout="alert('Gotcha!')"></div>
|
||||
|
||||
;; Copy from hiccup
|
||||
;; (defn escape-html
|
||||
;; "Change special characters into HTML character entities."
|
||||
;; [text]
|
||||
;; (-> text
|
||||
;; (string/replace "&" "&")
|
||||
;; (string/replace "<" "<")
|
||||
;; (string/replace ">" ">")
|
||||
;; (string/replace "\"" """)
|
||||
;; (string/replace "'" "'")
|
||||
;; (string/replace #"(?i)javascript:" "")))
|
||||
|
||||
Reference in New Issue
Block a user