def mal_get_related_anime(mal_soup):
    """
    Given the HTML soup returns the related anime information.

    Parameters
    ----------
    mal_soup : str
        HTML soup from beautiful soup.

    Returns
    -------
    str
        Related anime information from the soup.
    """
    search_results = mal_soup.findAll('table', class_='anime_detail_related_anime')
    result = []
    try:
        result = search_results[0].findAll('tr')
    except IndexError:
        pass
    string = ""
    for item in result:
        num = 0
        for content in item.contents[:2]:
            if num == 1:
                string += content.find('a').string
            else:
                string += content.string + " "
            num += 1
        string += "\n"
    return string