fix: hiccup to string

This commit is contained in:
Konstantinos Kaloutas
2022-10-06 15:09:04 +03:00
committed by Andelf
parent 604dd20d33
commit c5ebca26b6

View File

@@ -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]