docs: def clean(self, text, **kwargs):
          """This is the master method that cleans all of the filth out of the
          dirty dirty ``text``. All keyword arguments to this function are passed
          through to the  ``Filth.replace_with`` method to fine-tune how the
          ``Filth`` is cleaned.
          """
          if sys.version_info < (3, 0):
              # Only in Python 2. In 3 every string is a Python 2 unicode
              if not isinstance(text, unicode):
                  raise exceptions.UnicodeRequired
  
          clean_chunks = []
          filth = Filth()
          for next_filth in self.iter_filth(text):
              clean_chunks.append(text[filth.end:next_filth.beg])
              clean_chunks.append(next_filth.replace_with(**kwargs))
              filth = next_filth
          clean_chunks.append(text[filth.end:])
          return u''.join(clean_chunks)