summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-12-11 20:41:29 +0600
committerunwox <me@unwox.com>2024-12-16 21:20:55 +0600
commit155c9c5bbb703490e5d61f7b4504987e35088a95 (patch)
tree643995b9b90c3759888cfd9b3100d871c0ccfb63 /lib
parente35dbf50a93ba734def634317a09211654974d42 (diff)
integrate moychay.ru tea shop
Diffstat (limited to 'lib')
-rw-r--r--lib/html.fnl10
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 "&lt;" "<")
+ (string.gsub "&gt;" ">")
+ (string.gsub "&quot;" "\"")
+ (string.gsub "&amp;" "&"))))
+
+{ : unescape }