Module:String2/sandbox: Difference between revisions

Content deleted Content added
break it at first <li>
just the first <li>
Line 13:
p.sentence = function (frame )
local s = mw.text.trim( frame.args[1] or "" )
local lipos = string.find(s, "^.*<li>" )
if lipos then
return string.sub(s, 1, lipos) .. " // " .. string.sub(s, lipos) .. "<br>"