def get_cleaned_string(data):
    return strip_tags(force_text(data))
Return text clipped at the last space before or after max_len
dataset/ETHPy150Open edoburu/django-fluent-contents/fluent_contents/utils/search.py/get_cleaned_string--crossover with--dataset/ETHPy150Open fluentpython/example-code/05-1class-func/clip.py/clip