def citation_text(citation, doi_url, record_doi):
    """Format citation text"""
    citation = citation.replace(doi_url, '<a href="' + doi_url + '">' +
        doi_url + '</a>')
    n_txt = ('<br>Cite this record as:<br>' + citation +
        '<br> or choose a <a href="https://crosscite.org/?doi=' +
        record_doi + '"> different citation style.</a><br>' +
        '<a href="https://data.datacite.org/application/x-bibtex/' +
        record_doi + '">Download Citation</a><br>')
    return n_txt
