Module:Plain text: Difference between revisions
Content deleted Content added
better stripping, strip out more stuff |
Antoniokf5 (talk | contribs) m 1 revision imported from templatewiki:Module:Plain_text |
||
Line 11:
if not text then return end
text = mw.text.killMarkers(text)
:gsub('
:gsub('<br ?/?>', ', ') --replace br with commas
:gsub('<
:gsub('%[%[%s*[Ff]ile%s*:.-%]%]', '') --strip out files
:gsub('%[%[%s*[Ii]mage%s*:.-%]%]', '') --strip out use of image:
Line 24 ⟶ 21:
:gsub("'''''", "") --strip out bold italic markup
:gsub("'''?", "") --not stripping out '''' gives correct output for bolded text in quotes
return text
end
|