Text::AutoLink - Perl extension for making hyperlinks in text automatically.
use Text::Hatena::AutoLink; my $parser = Text::Hatena::AutoLink->new; my $html = $parser->parse($text);
Text::Hatena::AutoLink makes many hyperlinks in text automatically. Urls will be changed into hyperlinks.
All codes were rewritten at version 0.20 and some functions were removed. API for parsing text were changed too. Please be careful to upgrade your Text::Hatena::AutoLink to version 0.20+.
Here are common methods of Text::Hatena::AutoLink.
my $html = $parser->parse($text);
parses text and make links. It returns html.
Text::Hatena::AutoLink supports some simple syntaxes.
http://www.hatena.ne.jp/ [http://www.hatena.ne.jp/:title=Hatena] [http://www.hatena.ne.jp/images/top/h1.gif:image] [http://www.hatena.ne.jp/images/top/h1.gif:image:w300] mailto:someone@example.com
These lines all become into hyperlinks.
[]http://dont.link.to.me/[]
You can avoid being hyperlinked with 2 pair brackets like the above line.
Text::Hatena
Junya Kondo, <jkondo@hatena.ne.jp>
Copyright (C) Hatena Inc. All Rights Reserved.
This library is free software; you may redistribute it and/or modify it under the same terms as Perl itself.
To install Text::Hatena, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Hatena
CPAN shell
perl -MCPAN -e shell install Text::Hatena
For more information on module installation, please visit the detailed CPAN module installation guide.