diff options
Diffstat (limited to 'cljssss-g.clj')
-rw-r--r-- | cljssss-g.clj | 4 |
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 #"<" "<" - (str-utils/re-gsub #">" ">" string))) + (str-utils/re-gsub #">" ">" + (str-utils/re-gsub #"&" "&" + string)))) (defn escape-string [string] (str-utils/re-gsub #"\"" "\\\\\"" string)) |