The utf8_enc function had a missing referrence to the unicode library.

Fixed that.
This commit is contained in:
gyani 2015-06-20 06:40:13 +00:00
parent c697f458e0
commit eba83f60af

View file

@ -204,7 +204,7 @@ parser = {
local entityMap = { ["lt"]="<", ["gt"]=">", ["amp"]="&", ["quot"]='"', ["apos"]="'" }
local entitySwap = function(orig,n,s) return entityMap[s] or n=="#" and utf8_enc(tonumber('0'..s)) or orig end
local entitySwap = function(orig,n,s) return entityMap[s] or n=="#" and unicode.utf8_enc(tonumber('0'..s)) or orig end
local function unescape(str) return gsub( str, '(&(#?)([%d%a]+);)', entitySwap ) end
local function finishText()