code: def get_link_name (self, tag, attrs, attr):
          
          if tag == 'a' and attr == 'href':
              # Look for name only up to MAX_NAMELEN characters
              data = self.parser.peek(MAX_NAMELEN)
              data = data.decode(self.parser.encoding, "ignore")
              name = linkname.href_name(data)
              if not name:
                  name = attrs.get_true('title', u'')
          elif tag == 'img':
              name = attrs.get_true('alt', u'')
              if not name:
                  name = attrs.get_true('title', u'')
          else:
              name = u""
          return name
docs: Parse attrs for link name. Return name of link.