Anonymous user
Module:Text: Difference between revisions
From the Croc Wiki, the Croc encyclopedia
Jump to navigationJump to search
fix several bugs in getPlain
m (Protected "Module:Text": High-risk template or module: 9269 transclusions (more info) ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite))) |
(fix several bugs in getPlain) |
||
Line 257:
local j
while i do
j = r:find( "-->", i +
if j then
r = r:sub( 1, i - 1) .. r:sub( j + 3 )
else
r = r:sub( 1, i - 1)
end
i = r:find( "<!--",
end -- "<!--"
r = r:gsub( "(</?%l[^>]*>)", "" )
:gsub( "
:gsub( "
:gsub( " ", " " )
return r
|