Module:String

local p = {}

local utilsString = require("Module:UtilsString")

-- Used by Template:Page Name function p.StripTrailingParentheses(frame) local str = frame.args[1] return str and utilsString.stripTrailingParentheses(str) end

-- Escape commas and quotes which frequently have other uses in wikitext function p.Escape(frame) local str = frame.args[1] str = string.gsub(str, "'", "&apos;") str = string.gsub(str, ", "$quot;")	str = string.gsub(str, ",", "&#44;")	return str end

return p