def plain(self, markup):
<EOL>if self.full_strip:<EOL><INDENT>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)<EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)<EOL><DEDENT>markup = re.sub(self.re["<STR_LIT>"], "<STR_LIT>", markup)<EOL>markup = re.sub(self.re["<STR_LIT>"], "<STR_LIT>", markup)<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>if self.full_strip:<EOL><INDENT>markup = re.sub(r"<STR_LIT>", "<STR_LIT>", markup)<EOL><DEDENT>else:<EOL><INDENT>markup = re.sub(r"<STR_LIT>", '<STR_LIT>', markup)<EOL>markup = re.sub(r"<STR_LIT>", '<STR_LIT>', markup)    <EOL><DEDENT>markup = re.sub(self.re["<STR_LIT>"], "<STR_LIT>", markup)<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)<EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)<EOL>markup = markup.replace("<STR_LIT:[>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT:]>", "<STR_LIT>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT:[>")<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT:]>")<EOL>markup = re.sub(self.re["<STR_LIT>"], "<STR_LIT>", markup)                  <EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)                      <EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)           <EOL>markup = re.sub(self.ref+"<STR_LIT>", "<STR_LIT>", markup)        <EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)                 <EOL>markup = re.sub(self.re["<STR_LIT>"], "<STR_LIT>", markup)                    <EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)            <EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)                   <EOL>markup = re.sub("<STR_LIT>", "<STR_LIT>", markup)         <EOL>markup = re.sub(re.compile("<STR_LIT>", re.DOTALL), "<STR_LIT>", markup)  <EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT>")<EOL>markup = re.sub("<STR_LIT>", "<STR_LIT:U+0020>", markup)<EOL>markup = markup.split("<STR_LIT:\n>")<EOL>for i in range(len(markup)):<EOL><INDENT>if not markup[i].startswith("<STR_LIT:U+0020>"):<EOL><INDENT>markup[i] = re.sub(r"<STR_LIT>", "<STR_LIT:U+0020>", markup[i])<EOL><DEDENT><DEDENT>markup = "<STR_LIT:\n>".join(markup)<EOL>markup = markup.replace("<STR_LIT>", "<STR_LIT:.>")<EOL>if self.full_strip:<EOL><INDENT>markup = strip_tags(markup, exclude=["<STR_LIT>"], linebreaks=True)<EOL><DEDENT>markup = markup.strip()<EOL>return markup<EOL>
Strips Wikipedia markup from given text.

        This creates a "plain" version of the markup,
        stripping images and references and the like.
        Does some commonsense maintenance as well,
        like collapsing multiple spaces.
        If you specified full_strip=False for WikipediaPage instance,
        some markup is preserved as HTML (links, bold, italic).