diff options
| author | unwox <me@unwox.com> | 2025-10-03 11:56:37 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2025-10-13 23:11:01 +0600 |
| commit | 3f5ade2e7a139bb4405437e8fc5546aafc7b05ef (patch) | |
| tree | 77c437958d74b591f11ec207d16749cf207a51e3 /macros.fnl | |
| parent | f5a70e6a446e00969adb866ef2e2d10bf33bc4a8 (diff) | |
WIP shop
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)) |
