Module:Remove html

local p = {} local getArgs = require("Module:Arguments").getArgs

function p.main(frame) args = getArgs(frame) s = args[1] res = "" a = 0 for i=1, #s do		local c = s:sub(i, i)		if c == "<" then a = a + 1 elseif c == ">" then a = a - 1 elseif a == 0 then res = res .. c		end end return res end

return p