Skip to content

Commit

Permalink
Revert 2.0 behavior of 'h' function (fixes #198)
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Jun 21, 2023
1 parent 8dc90d2 commit ba62347
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/hiccup/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
`(str (hiccup2/html ~(assoc options :escape-strings? false) ~@content))
`(str (hiccup2/html {:escape-strings? false} ~options ~@content))))

(defn h
(def ^{:deprecated 2.0} h
"Escape strings within the [[html]] macro."
{:deprecated "2.0"}
[text]
(if util/*escape-strings?*
(util/as-str text)
(util/escape-html text)))
util/escape-html)

0 comments on commit ba62347

Please sign in to comment.