From bbd39c98b8c47091983ebbc0ccd507ac9801e100 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Sun, 2 Nov 2025 20:10:50 +0000 Subject: fix quotes in html attrs --- html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.lua b/html.lua index 456285a..71e244b 100644 --- a/html.lua +++ b/html.lua @@ -5,7 +5,7 @@ local function fmt_attrs(attrs) return k else if type(v) == "table" then v = table.concat(v," ") end - return ('%s="%s"'):format(k,v) + return ('%s="%s"'):format(k,tostring(v):gsub('"','"')) end end -- cgit v1.2.3