This site is no longer actively maintained. It exists for historical purposes as an example of Phabricator integration and Lua scripting.

Module:Utilities

From cpt

Documentation for this module may be created at Module:Utilities/doc

local p = {}

function p.cleanse(frame)
	local s = frame.args[1]
	s = string.gsub( s, '{', '{' )
	s = string.gsub( s, '}', '}' )
	s = string.gsub( s, '%[', '[' )
	s = string.gsub( s, '%]', ']' )
	s = string.gsub( s, '|', '|' )
	return s
end

return p