def METHOD_NAME(text):
    try:
        text = html2text(text, bodywidth=0).strip()
    except Exception as e:
        print(e)
        text = re.sub(r"<[^>]*>", "", str(text))
    text = re.sub(remove_markdown_links_pattern, r"\1", text)
    text = remove_emojis(text)
    return re.sub(remove_remaining_links, "", text)