summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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('"','"'))
end
end