Fix XML escaping

This commit is contained in:
Marcel Fabian Krüger 2023-12-19 20:55:13 +01:00
parent 9005c304d7
commit 7a52f5580b

View File

@ -10,7 +10,7 @@ local escapes = {
['&'] = "&", ['&'] = "&",
} }
local function escape_text(text) local function escape_text(text)
return string.gsub(tostring(text), '("<>&)', escapes) return string.gsub(tostring(text), '["<>&]', escapes)
end end
local attrs = {} local attrs = {}