import re


def clean_text(text):
    """Remove HTML links and special characters from text.

    Parameters
    ----------
    text : str
        The text to clean.

    Returns
    -------
    str
        The cleaned text.

    """
    regex = r'(@[A-Za-z0-9]+)|([^0-9A-Za-z \t])|(\w+:\/\/\S+)'
    cleaned_text = re.sub(regex, ' ', text)
    return ' '.join(cleaned_text.split())