|
|
@ -191,9 +191,9 @@ end
|
|
|
|
-------------------------------------------------------------------------------------------------
|
|
|
|
-------------------------------------------------------------------------------------------------
|
|
|
|
-- enclose a string by double quotes
|
|
|
|
-- enclose a string by double quotes
|
|
|
|
function strifyXml(str)
|
|
|
|
function strifyXml(str)
|
|
|
|
local strxml = string.gsub(tostring(str), ">", ">")
|
|
|
|
local strxml = string.gsub(tostring(str), "&", "&")
|
|
|
|
strxml = string.gsub(strxml, "<", "<")
|
|
|
|
strxml = string.gsub(strxml, "<", "<")
|
|
|
|
strxml = string.gsub(strxml, "&", "&")
|
|
|
|
strxml = string.gsub(strxml, ">", ">")
|
|
|
|
strxml = string.gsub(strxml, "'", "'")
|
|
|
|
strxml = string.gsub(strxml, "'", "'")
|
|
|
|
strxml = string.gsub(strxml, '"', """)
|
|
|
|
strxml = string.gsub(strxml, '"', """)
|
|
|
|
return [["]] .. strxml .. [["]]
|
|
|
|
return [["]] .. strxml .. [["]]
|
|
|
|