summaryrefslogtreecommitdiff
path: root/html.lua
diff options
context:
space:
mode:
authorubq323 <ubq323@ubq323.website>2025-11-02 20:10:50 +0000
committerubq323 <ubq323@ubq323.website>2025-11-02 20:11:04 +0000
commitbbd39c98b8c47091983ebbc0ccd507ac9801e100 (patch)
tree30e5f0927abd3f73798e9a8ae44a833f9a912290 /html.lua
parent0b7a7ed12e96e9111f4761a16cc18a49071ce922 (diff)
fix quotes in html attrs
Diffstat (limited to 'html.lua')
-rw-r--r--html.lua2
1 files changed, 1 insertions, 1 deletions
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('"','&quot;'))
end
end