aboutsummaryrefslogtreecommitdiff
path: root/cljssss-g.clj
diff options
context:
space:
mode:
Diffstat (limited to 'cljssss-g.clj')
-rw-r--r--cljssss-g.clj4
1 files changed, 3 insertions, 1 deletions
diff --git a/cljssss-g.clj b/cljssss-g.clj
index b473cb6..d919abc 100644
--- a/cljssss-g.clj
+++ b/cljssss-g.clj
@@ -185,7 +185,9 @@ to merely being replaced with a div element)?"
(defn escape-xml [string]
(str-utils/re-gsub #"<" "&#60;"
- (str-utils/re-gsub #">" "&#62;" string)))
+ (str-utils/re-gsub #">" "&#62;"
+ (str-utils/re-gsub #"&" "&#38;"
+ string))))
(defn escape-string [string]
(str-utils/re-gsub #"\"" "\\\\\"" string))