Module:ArgRest/testCaser explained

p =

function p.main(frame) local code = frame.args['sourceCode'] or error("sourceCode arg not provided") if code:match'nowiki' then -- undo nowiki sanitization code = mw.text.unstripNoWiki(code) else error("sourceCode arg was missing ") end return frame:preprocess(code:gsub("&lt;", "<"):gsub("&gt;", ">")) end return p