diff options
| author | unwox <me@unwox.com> | 2024-12-11 20:41:29 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-12-16 21:20:55 +0600 |
| commit | 155c9c5bbb703490e5d61f7b4504987e35088a95 (patch) | |
| tree | 643995b9b90c3759888cfd9b3100d871c0ccfb63 /lib/html.fnl | |
| parent | e35dbf50a93ba734def634317a09211654974d42 (diff) | |
integrate moychay.ru tea shop
Diffstat (limited to 'lib/html.fnl')
| -rw-r--r-- | lib/html.fnl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/html.fnl b/lib/html.fnl new file mode 100644 index 0000000..9cf7b3a --- /dev/null +++ b/lib/html.fnl @@ -0,0 +1,10 @@ +(fn unescape [s] + (assert (= (type s) :string) "s must be string") + (pick-values 1 + (-> s + (string.gsub "<" "<") + (string.gsub ">" ">") + (string.gsub """ "\"") + (string.gsub "&" "&")))) + +{ : unescape } |
