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 + 34, true )
if j then
r = r:sub( 1, i - 1) .. r:sub( j + 3 )
else
r = r:sub( 1, i - 1)
end
i = r:find( "<!--", i1, true )
end -- "<!--"
r = r:gsub( "(</?%l[^>]*>)", "" )
:gsub( "'''(.+)'''", "%1" )
:gsub( "''(.+)''", "%1" )
:gsub( "&nbsp;", " " )
return r
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu