Module:StripColor

local p = {}

function p.parse(frame) local b = string.gsub(frame.args[1],"([{}])", "") local b = string.gsub(b,"(~J211)", "") local b = string.gsub(b,"(~)"," ") local b = string.gsub(b,"(')","''") local a = string.gsub(b,"(&amp;)(%w)([^&\n]*)", function(_,color,text)       return text    end) return a end

function p.nonxmlparse(frame) local a = string.gsub(frame.args[1],"(\\n)"," ") local b = string.gsub(a,"(&)(%w)([^&\n]*)", function(_,color,text)       return text    end) return b end

return p