diff options
Diffstat (limited to 'macros.fnl')
| -rw-r--r-- | macros.fnl | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,10 +1,11 @@ -(local entity-replacements {"&" "&" ; must be first! - "<" "<" - ">" ">" - "\"" """}) +(local entity-replacements + {"&" "&" ; must be first! + "<" "<" + ">" ">" + "\"" """}) (local entity-search - (.. "[" (table.concat (icollect [k (pairs entity-replacements)] k)) "]")) + (.. "[" (table.concat (icollect [k (pairs entity-replacements)] k)) "]")) (fn escape-html [s] (assert (= (type s) :string)) |
