code: def title_name (txt):
      
      name = u""
      endtag = title_end_search(txt)
      if not endtag:
          return name
      name = txt[:endtag.start()]
      return _unquote(name)
docs: Return the part of the first <title>name</title> in txt.