Skip to content

Commit

Permalink
Fix site preprender to use r/unsafe-html
Browse files Browse the repository at this point in the history
  • Loading branch information
Deraen committed Feb 14, 2025
1 parent df366c3 commit bc4d183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prerender/sitetools/prerender.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(->> "../" (repeat depth) (apply str))))

(defn danger [t s]
[t {:dangerouslySetInnerHTML {:__html s}}])
[t {:dangerouslySetInnerHTML (r/unsafe-html s)}])

(defn add-cache-buster [resource-path path]
(let [h (md5-file/sync (path/join resource-path path))]
Expand Down

0 comments on commit bc4d183

Please sign in to comment.