모듈:string/replacementEscape
보이기
이 모듈에 대한 설명문서는 모듈:string/replacementEscape/설명문서에서 만들 수 있습니다
local gsub = string.gsub
--[==[Escapes {%}, which is the only magic character used in replacement strings, which are given as the third argument to {string.gsub} and {mw.ustring.gsub}, as well as format strings given to {string.format} and {mw.ustring.format}.]==]
return function(str)
return (gsub(str, "%%", "%%%%"))
end