import re


def format_slack_text(text: str):
    """This method is used to remove the Slack special characters from a text that will be sent.
    You can test different formats in this interface: https://app.slack.com/block-kit-builder/T03AWMGU2#%7B%22blocks%22:%5B%7B%22type%22:%22section%22,%22text%22:%7B%22type%22:%22mrkdwn%22,%22text%22:%22MR%20%3Cwww.url.com%7Cname%3E%22%7D%7D%5D%7D
    Special characters are documented here: https://api.slack.com/reference/surfaces/formatting#escaping
    """
    text = re.sub(r"&(?!(amp|lt|gt);)", "&amp;", text)
    text = text.replace("<", "&lt;")
    text = text.replace(">", "&gt;")
    return text