def sanitise_text(text: str):
    """Sanitise input text.

    Args:
        text: input text.

    Returns:
        Sanitised text

    """
    return ''.join(e for e in text if e.isalnum() or e.isspace())