You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sanitation should not be enabled by default (i.e. the default could be an identify function lambda value: value). Enabling it should be strongly recommended in the documentation however.
Sanitation should also be configurable through Django settings, ideally on a per profile basis (with a fallback to a global sanitizer).
The fields provided by this project should have some (optional) way of sanitizing their values. For example by running
bleach
on the field content.e.g.:
RichTextWidget(..., sanitizer=bleach.clean)
orRichTextField(..., sanitizer=bleach.clean)
This could be implemented using a custom
to_python
(similar to thestrip
option of Django'sCharfield
) orclean
implementation (similar to thecoerce
option of Django's TypeChoiceField`.Sanitation should not be enabled by default (i.e. the default could be an identify function
lambda value: value
). Enabling it should be strongly recommended in the documentation however.Sanitation should also be configurable through Django settings, ideally on a per profile basis (with a fallback to a global sanitizer).
e.g.:
(dotted paths should be resolved using Django's
import_string
function).The text was updated successfully, but these errors were encountered: