def clean_input(text):
    '\n    Text sanitization function\n    :param text: User input text\n    :return: Sanitized text, without non ascii characters\n    '
    return str(text.encode().decode('ascii', errors='ignore'))
Text sanitization function
:param text: User input text
:return: Sanitized text, without non ascii characters
def clean_input(text):
    '\n    Text sanitization function\n    :param text: User input text\n    :return: Sanitized text, without non ascii characters\n    '
    return str(text.encode().decode('ascii', errors='ignore'))