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.
Data::FormValidator, Text::Demoroniser
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-2014 by Barbie
This distribution is free software; you can redistribute it and/or modify it under the Artistic Licence v2.
To install Data::FormValidator::Filters::Demoroniser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::FormValidator::Filters::Demoroniser
CPAN shell
perl -MCPAN -e shell install Data::FormValidator::Filters::Demoroniser
For more information on module installation, please visit the detailed CPAN module installation guide.