NAME

LEOCHARRE::HTML::Text - turn html to text

SYNOPSIS

  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');

DESCRIPTION

This converts html code into text.

Namespace

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.

SUBROUTINES

Not exported by default

html2txt()

Argument is url, html code, or path to file on disk. Returns text. This is what you want to use.

slurp_url()

Argument is url. Returns raw html as per wget.

CAVEATS

In development.

BUGS

Please notify the AUTHOR.

SEE ALSO

HTML::Entities. html2txt cli to this module, included.

AUTHOR

Leo Charre leocharre at cpan dot org

THANKS

Gordon Van Amburg

COPYRIGHT

Copyright (c) 2009 Leo Charre. All rights reserved.

LICENSE

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".

DISCLAIMER

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.