diff --git a/luamml-xmlwriter.lua b/luamml-xmlwriter.lua index 271fb07..cbdc1f1 100644 --- a/luamml-xmlwriter.lua +++ b/luamml-xmlwriter.lua @@ -10,7 +10,7 @@ local escapes = { ['&'] = "&", } local function escape_text(text) - return string.gsub(tostring(text), '("<>&)', escapes) + return string.gsub(tostring(text), '["<>&]', escapes) end local attrs = {}