From a56e4076a0b6c5345b24593ac785dcdf994213e8 Mon Sep 17 00:00:00 2001 From: shahrul Date: Sun, 20 Oct 2024 20:43:09 +0800 Subject: [PATCH] fix sanitize node list --- h.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/h.lua b/h.lua index 9a02a3d..e2a139a 100644 --- a/h.lua +++ b/h.lua @@ -70,7 +70,7 @@ local function sanitize_value(str) end local function h(element) - if type(element) ~= "table" then return element or "" end + if type(element) ~= "table" then return sanitize_value(element) or "" end local tkeys = {} -- asume as nodeList if type(element.atts) ~= "table" then