Text::Slugify - create URL slugs from text
version 0.002
use Text::Slugify 'slugify'; my $slug = slugify("You won't believe what happened next!");
Takes a bit of text, removes puncuation, spaces and other junk to produce a string suitable for use in a URL.
If you have Text::Unaccent::PurePerl installed it will 'unaccent' accented characters instead of removing them.
There's probably a huge amount of inputs for which nothing sane is produced. Patches are welcome!
Please submit bug reports and patches to https://github.com/Text-Slugify/issues.
Robert Norris <rob@eatenbyagrue.org>
Copyright (c) 2014 Robert Norris.
This module is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Text::Slugify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Slugify
CPAN shell
perl -MCPAN -e shell install Text::Slugify
For more information on module installation, please visit the detailed CPAN module installation guide.