Exercise / HTMLPurifierBundle

HTML Purifier is a standards-compliant HTML filter library written in PHP.
http://htmlpurifier.org/
Other
275 stars 56 forks source link

The purifying listener does not properly trim the field if there are only whitespaces. #58

Closed stof closed 4 years ago

stof commented 5 years ago

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.

stof commented 5 years ago

/cc @spolischook

spolischook commented 5 years ago

@stof I'm not actively used this component, so It would be great to have test and fix - I'll merge it asap.

HeahDude commented 4 years ago

See #67.

HeahDude commented 4 years ago

2.0.5 has been tagged.