15.088
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
| Zeile 31: | Zeile 31: | ||
end | end | ||
return args, noframe | return args, noframe | ||
end | |||
function p.htmlAndWikitextDump(t) | |||
local d = "" | |||
for i = 1, mw.ustring.len(t) do | |||
c = mw.ustring.byte(t, i) | |||
if c == mw.ustring.byte("[") then | |||
d = d .. "[" | |||
elseif c == mw.ustring.byte("]") then | |||
d = d .. "]" | |||
elseif c == mw.ustring.byte("{") then | |||
d = d .. "{" | |||
elseif c == mw.ustring.byte("}") then | |||
d = d .. "}" | |||
elseif c == mw.ustring.byte("<") then | |||
d = d .. "<" | |||
elseif c == mw.ustring.byte(">") then | |||
d = d .. ">" | |||
else | |||
d = d .. mw.ustring.char(c) | |||
end | |||
end | |||
return d | |||
end | end | ||
return p | return p | ||