docs: def parse_var(var):
      """
      Returns a tuple consisting of a string and a tag, or None, if none is
      specified.
      """
      bits = var.split("<", 1)
      if len(bits) < 2:
          tag = None
      else:
          tag = bits[1]
      return ucn_to_unicode(bits[0]), tag