Content deleted Content added
Dreamy Jazz (talk | contribs) merge from sandbox; handle strange capitalisation of ref tags, which are valid but were not removed (and in some cases causing spew errors) |
Dreamy Jazz (talk | contribs) merge from sandbox; do the same regex fixes for noinclude and imagemap (just in case) |
||
Line 434:
text = mw.ustring.gsub(text, "%c%s*==.*","") -- remove first ==Heading== and everything after it
end
text = mw.ustring.gsub(text, "<
text = mw.ustring.gsub(text, "<%s*[Rr][Ee][Ff][^>]-/%s*>", "") -- remove refs cited elsewhere
text = mw.ustring.gsub(text, "<%s*[Rr][Ee][Ff].->.-<%s*/%s*[Rr][Ee][Ff]%s*>", "") -- remove refs
text = mw.ustring.gsub(text, "<%s*[Ii]
text = mw.ustring.gsub(text, "%b{}", striptemplate) -- remove unwanted templates such as references
text = mw.ustring.gsub(text, "%s*{{%s*[Tt][Oo][Cc].-}}", "") -- remove most common tables of contents
|