Barbie

NAME

Data::FormValidator::Filters::Demoroniser - A Data::FormValidator filter that allows you to demoronise a string.

SYNOPSIS

   use Data::FormValidator::Filters::Demoroniser qw(demoroniser);

   # Data::FormValidator Profile:
   my $dfv_profile = {
      required => [ qw/foo bar/ ],
      field_filters => {
         foo => [ 'trim', demoroniser() ]
      }
   };

DESCRIPTION

Data::FormValidator filter that allows you to demoronise a string in form field values.

API

This module exports the following filters:

demoroniser

Given a string, will replace the Microsoft "smart" characters with sensible ACSII versions.

demoroniser_utf8

The same as demoroniser, but converts into correct UTF8 versions.

NOTES

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.

SEE ALSO

Data::FormValidator, Text::Demoroniser

THANK YOU

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.

AUTHOR

Barbie, <barbie@missbarbell.co.uk>

COPYRIGHT AND LICENSE

Copyright (C) 2009-2014 by Barbie

  This distribution is free software; you can redistribute it and/or
  modify it under the Artistic Licence v2.