From 7a52f5580bba815c65eee3861d6888002aa53729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Fabian=20Kr=C3=BCger?= Date: Tue, 19 Dec 2023 20:55:13 +0100 Subject: [PATCH] Fix XML escaping --- luamml-xmlwriter.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {}