01.12.2017, 18:05
Hi,
Use this:
Other metadata options are in this function:
BR,
Erwin
Use this:
Code:
str = 'Hold me tight or don't'
str = string.gsub(str, ''', "'")
log(str) -- Hold me tight or don't
Other metadata options are in this function:
Code:
function unescapemetadata(str)
str = string.gsub( str, '%%3a', ':' )
str = string.gsub( str, '%%2f', '/' )
str = string.gsub( str, '<', '<' )
str = string.gsub( str, '>', '>' )
str = string.gsub( str, '"', '"' )
str = string.gsub( str, ''', "'" )
str = string.gsub( str, '&#(%d+);', function(n) return string.char(n) end )
str = string.gsub( str, '&', '&' ) -- Be sure to do this after all others
return str
end
BR,
Erwin