Django text and character fields that clean HTML input.
Install django-html-cleaner:
pip install django-html-cleaner
Then enable it in a Django project by adding django_html_cleaner
to
your INSTALLED_APPS
in your Django settings.
Then use it:
from django_html_cleaner.models import SanitizedTextField
# in a Django model
field = SanitizedTextField()
The full documentation is at https://django-html-cleaner.readthedocs.org.