呢個模組嘅解說可以喺模組:string/pattern escape/doc度開

return function (str)
	return mw.ustring.gsub(str, "([%(%)%.%%%+%-%*%?%[%^%$%]])", "%%%1")
end