module = {} function module.main(frame) a = frame.args[1] res = "" for i = 1, mw.ustring.len(a) do local char = mw.ustring.sub(a, i, i); res = res.."&#"..mw.ustring.byte(char)..";" end return res end return module