Module:Sandbox/Wqnvlz/Preprocess ISO 3166 data explained

local p = local getArgs = require('Module:Arguments').getArgslocal strip = require('Module:ISO 3166/sandbox').strip

function p.run(frame) local t = getArgs(frame)[1] local result = local inside = false local i = 1 for block in mw.text.gsplit(t, '"', true) do result[i] = (inside and strip(block) or block) inside = not inside i = i + 1 end return table.concat(result, '"')end

return p