| Data-FormValidator-Filters-Demoroniser documentation | view source | Contained in the Data-FormValidator-Filters-Demoroniser distribution. |
Data::FormValidator::Filters::Demoroniser - A Data::FormValidator filter that allows you to demoronise a string.
use Data::FormValidator::Filters::Demoroniser qw(demoroniser);
# Data::FormValidator Profile:
my $dfv_profile = {
required => [ qw/foo bar/ ],
field_filters => {
foo => [ 'trim', demoroniser() ]
}
};
Data::FormValidator filter that allows you to demoronise a string in form field values.
This module exports the following filters:
Given a string, will replace the Microsoft "smart" characters with sensible ACSII versions.
The same as demoroniser, but converts into correct UTF8 versions.
Although Data-FormValidator is not a dependency, it is expected that this module will be used as part of DFV's constraint framework.
This module was originally written as part of the Labyrinth website management tool.
This module was written after Smylers spotted a problem in submitting a survey for the YAPC::Europe 2009 Perl Conference. Unfortunately the forms were not accepting the Microsoft "smart" characters and causing problems when submitting the form. So a big thanks to Smylers for inspiring this module.
Also thanks to Brian Cassidy for further suggestions for improvements.
Barbie, <barbie@missbarbell.co.uk>
Copyright (C) 2009 by Barbie
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.
| Data-FormValidator-Filters-Demoroniser documentation | view source | Contained in the Data-FormValidator-Filters-Demoroniser distribution. |