def METHOD_NAME(element):
    if element is None:
        return ""
    returned_string = element.text or ""
    for t in element:
        if t.tag == "ref":
            returned_string += "<a href='#{}'>{}</a>".format(t.text.replace("()", ''), t.text)
            returned_string += t.tail or ""
        elif t.tag == "computeroutput":
            returned_string += "<code>{}</code>".format(t.text)
            returned_string += t.tail or ""
        else:
            returned_string += t.text or ""
            returned_string += t.tail or ""
    return returned_string.strip()