HTML::FormatText - Format HTML as plaintext
require HTML::TreeBuilder;
$tree = HTML::TreeBuilder->new->parse_file("test.html");
require HTML::FormatText; $formatter = HTML::FormatText->new(leftmargin => 0, rightmargin => 50); print $formatter->format($tree);
You might specify the following parameters when constructing the formatter:
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Original author: Gisle Aas <[email protected]>
|
Закладки на сайте Проследить за страницей |
Created 1996-2025 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |