form.filters
Functions
|
|
|
Strips all leading and trailing whitespace from data. |
|
Module Contents
- form.filters.strip_whitespace(value: str | None) str | None[source]
Strips all leading and trailing whitespace from data.
Please note that you will need both InputRequired and DataRequired in the validators if the field is non-optional. InputRequired only looks at the raw data before filtering, and DataRequired only looks at the raw data after filtering.