From 155c9c5bbb703490e5d61f7b4504987e35088a95 Mon Sep 17 00:00:00 2001 From: unwox Date: Wed, 11 Dec 2024 20:41:29 +0600 Subject: integrate moychay.ru tea shop --- lib/html.fnl | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 lib/html.fnl (limited to 'lib') 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 } -- cgit v1.2.3