Module:EscQ

local main1 = function (str) return (mw.ustring.gsub(str == nil and '' or tostring(str), "'", "\\'")) end

return { main1 = main1, _main = function (args) return main1(args[1]) end, main = function (frame) return main1(frame.args[1]) end, }