LEOCHARRE::HTML::Text - turn html to text
use LEOCHARRE::HTML::Text qw/html2txt slurp_url/; my $out = html2txt($url); my $out = html2txt($path); my $out = html2txt($html); my $raw_html = slurp_url('http://news.bbc.co.uk');
This converts html code into text.
It resides under my namespace because I am not so presumptuous as to think I am the most qualified person to write this. But I am qualified. So here.
Not exported by default
Argument is url, html code, or path to file on disk. Returns text. This is what you want to use.
Argument is url. Returns raw html as per wget.
In development.
Please notify the AUTHOR.
HTML::Entities. html2txt cli to this module, included.
Leo Charre leocharre at cpan dot org
Gordon Van Amburg
Copyright (c) 2009 Leo Charre. All rights reserved.
This package is free software; you can redistribute it and/or modify it under the same terms as Perl itself, i.e., under the terms of the "Artistic License" or the "GNU General Public License".
This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the "GNU General Public License" for more details.
To install LEOCHARRE::HTML::Text, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LEOCHARRE::HTML::Text
CPAN shell
perl -MCPAN -e shell install LEOCHARRE::HTML::Text
For more information on module installation, please visit the detailed CPAN module installation guide.