local replacements = {
['\\'] = "\\",
}
function toreplace(s)
local result
if type(s) == "string" then
result = string.gsub (s, "%a+",
function (str)
return replacements [str]
end)
return result
else
message.console("toreplace function: it is not a string.")
end --if
end -- toreplace
when it display on my screen like this:
trigger:^You are tempered against fire damage.$
when it supposedly display like this:
trigger:^You are tempered against fire damage\.$
how to display '\' properly?
thanks!