We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 05871cf + a0825c3 commit 818ea43Copy full SHA for 818ea43
slaxml.lua
@@ -54,7 +54,7 @@ function SLAXML:parse(xml,options)
54
local nsStack = {}
55
56
local entityMap = { ["lt"]="<", ["gt"]=">", ["amp"]="&", ["quot"]='"', ["apos"]="'" }
57
- local entitySwap = function(orig,n,s) return entityMap[s] or n=="#" and char(s) or orig end
+ local entitySwap = function(orig,n,s) return entityMap[s] or n=="#" and char('0'..s) or orig end
58
local function unescape(str) return gsub( str, '(&(#?)([%d%a]+);)', entitySwap ) end
59
local anyElement = false
60
0 commit comments