mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 15:45:00 +00:00
fix: hiccup to string
This commit is contained in:
committed by
Andelf
parent
604dd20d33
commit
c5ebca26b6
@@ -1,5 +1,6 @@
|
||||
(ns frontend.components.block
|
||||
(:refer-clojure :exclude [range])
|
||||
(:require-macros [hiccups.core])
|
||||
(:require ["/frontend/utils" :as utils]
|
||||
["@capacitor/share" :refer [^js Share]]
|
||||
[cljs-bean.core :as bean]
|
||||
@@ -1580,7 +1581,7 @@
|
||||
[:div.warning {:title "Invalid hiccup"} s]
|
||||
[:span {:dangerouslySetInnerHTML
|
||||
{:__html (-> (safe-read-string s)
|
||||
(rum/render-static-markup)
|
||||
(hiccups.core/html)
|
||||
(security/sanitize-html))}}])
|
||||
|
||||
["Inline_Html" s]
|
||||
@@ -3319,7 +3320,7 @@
|
||||
content]
|
||||
[:div.hiccup_html {:dangerouslySetInnerHTML
|
||||
{:__html (-> (safe-read-string content)
|
||||
(rum/render-static-markup)
|
||||
(hiccups.core/html)
|
||||
(security/sanitize-html))}}])
|
||||
|
||||
["Export" "latex" _options content]
|
||||
|
||||
Reference in New Issue
Block a user