def METHOD_NAME(self, element):
    # following convert_xml_text_markup in anth2bib.py
    if element.tag in ["tex-math", "url"]:
        if len(element) > 0:
            log.warning(f"<{element.tag}> element has children")
        text = element.text
    else:
        text = bibtex_encode(element.text)
    for nested_element in element:
        text += self.METHOD_NAME(nested_element)
        text += bibtex_encode(nested_element.tail)
    if element.tag == "fixed-case":
        text = f"{{{text}}}"
    elif element.tag == "b":
        text = f"\\textbf{{{text}}}"
    elif element.tag == "i":
        text = f"\\textit{{{text}}}"
    elif element.tag == "tex-math":
        text = f"${text}$"
    elif element.tag == "url":
        text = f"\\url{{{text}}}"
    text = bibtex_convert_quotes(text)
    return remove_extra_whitespace(text)