Changes for clojure.string/escape

dyba on Sun, 24 Mar 2013
;; There should be no space between the \ and the &, but I don't know how
;; to create that in an example yet.
user=> (clojure.string/escape "I want 1 < 2 as HTML, & other good things."
               {\< "<", \> ">", \ & "&"})
"I want 1 < 2 as HTML, & other good things."
jafingerhut on Thu, 24 Feb 2011
;; There should be no space between the \ and the &, but I don't know how
;; to create that in an example yet.
user=> (escape "I want 1 < 2 as HTML, & other good things."
               {\< "&lt;", \> "&gt;", \ & "&amp;"})
"I want 1 &lt; 2 as HTML, &amp; other good things."