code: def quote(self, text=None):
          
          text = text or re.sub(r'\[quote=.+?\[/quote\]', '',
                                self.text, flags=re.DOTALL
                                ).strip('\n')
          return f'[quote={self.author.id};{self.id}]{text}[/quote]'
docs: Quote this post.
  
          Parameters
          ----------
          text : str
              Text to quote.  Defaults to the whole text of the post.
  
          Returns
          -------
          str
              A NationStates bbCode quote of the post.