code: def _parse_tags(self, match):
          '''Parse hashtags.'''
  
          mat = match.group(0)
  
          # Fix problems with the regex capturing stuff infront of the #
          tag = None
          for i in '#\uff03':
              pos = mat.rfind(i)
              if pos != -1:
                  tag = i
                  break
  
          pre, text = mat[:pos], mat[pos + 1:]
          if self._include_spans:
              span = match.span(0)
              # add an offset if pre is e.g. ' '
              span = (span[0] + len(pre), span[1])
              self._tags.append((text, span))
          else:
              self._tags.append(text)
  
          if self._html:
              return '%s%s' % (pre, self.format_tag(tag, text)f _parse_tags(self, match):
          '''Parse hashtags.'''
  
          mat = match.group(0)
  
          # Fix problems with the regex capturing stuff infront of the #
          tag = None
          for i in '#\uff03':
              pos = mat.rfind(i)
              if pos != -1:
                  tag = i
                  break
  
          pre, text = mat[:pos], mat[pos + 1:]
          if self._include_spans:
              span = match.span(0)
              # add an offset if pre is e.g. ' '
              span = (span[0] + len(pre), span[1])
              self._tags.append((text, span))
          else:
              self._tags.append(text)
  
          if self._html:
              return '%s%s' % (pre, self.format_tag(tag, text))
docs: Parse hashtags.