Fix XML escaping
This commit is contained in:
parent
9005c304d7
commit
7a52f5580b
@ -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 = {}
|
||||
|
Loading…
Reference in New Issue
Block a user