Skip to content

Commit

Permalink
HTML escape bug
Browse files Browse the repository at this point in the history
  • Loading branch information
raystubbs committed Jul 4, 2024
1 parent e966d31 commit 2245dd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/subzero/plugins/html.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ HTML rendering.
(write-html !db w (render-binding node-id k v))))))

:else
(write w (-> vnode str (str/replace #"[<>]" #(case % "<" "&gt;" ">" "&lt;"))))))
(write w (-> vnode str (str/replace #"[<>]" #(case % "<" "&lt;" ">" "&gt;"))))))

(defn write-html "
Write markup to a writer as HTML.
Expand Down

0 comments on commit 2245dd4

Please sign in to comment.