def clean_link_text(link_text):
    """ The link text sometimes contains new lines, or extrananeous spaces, we
    remove them here. """

    return link_text.strip().replace('\n', '').replace('\r', '')