Skip to content

Commit

Permalink
fix sanitize node list
Browse files Browse the repository at this point in the history
  • Loading branch information
shahrul committed Oct 20, 2024
1 parent a7e936c commit a56e407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a56e407

Please sign in to comment.