diff --git a/ryzom/common/data_common/r2/r2_misc.lua b/ryzom/common/data_common/r2/r2_misc.lua index 2402ff1fd..293e9b33c 100644 --- a/ryzom/common/data_common/r2/r2_misc.lua +++ b/ryzom/common/data_common/r2/r2_misc.lua @@ -191,9 +191,9 @@ end ------------------------------------------------------------------------------------------------- -- enclose a string by double quotes 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, '"', """) return [["]] .. strxml .. [["]]