def get_title(soup):
    """
    Get a topic title.

    Examples
    --------
    >>> title_tag = '<title>title</title>'
    >>> soup = make_soup(title_tag)
    >>> get_title(soup)
    'title'

    """
    return soup.find('title').text.split('|')[0].strip()