The form type extension disables the trim option when the purify_html option is enabled, saying that the listener already trims.
But the trimmed value is not always written back to the event. If trimming makes it empty, the value is not replaced in the event.
The form type extension disables the
trim
option when thepurify_html
option is enabled, saying that the listener already trims. But the trimmed value is not always written back to the event. If trimming makes it empty, the value is not replaced in the event.