- SEE ALSO
- COPYRIGHT AND LICENSE
html2text - Render HTML as text using one of multiple backends
This document describes version 0.001 of html2text (from Perl distribution App-html2text), released on 2019-01-14.
% html2text [options] <html>
Backends are tried in the following order (order is chosen based on rendering quality):
HTML::FormatText::Elinks (using external program 'elinks')
HTML::FormatText::Links (using external program 'links')
HTML::FormatText::W3m (using external program 'w3m')
HTML::FormatText::Lynx (using external program 'lynx')
* marks required options.
Shortcut for --log-level=debug.
Set log level.
Shortcut for --log-level=error.
Shortcut for --log-level=trace.
Shortcut for --log-level=info.
This script has shell tab completion capability with support for several shells.
To activate bash completion for this script, put:
complete -C html2text html2text
in your bash startup (e.g. ~/.bashrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.
It is recommended, however, that you install modules using cpanm-shcompgen which can activate shell completion for scripts immediately.
To activate tcsh completion for this script, put:
complete html2text 'p/*/`html2text`/'
in your tcsh startup (e.g. ~/.tcshrc). Your next shell session will then recognize tab completion for the command. Or, you can also directly execute the line above in your shell to activate immediately.
It is also recommended to install shcompgen (see above).
For fish and zsh, install shcompgen as described above.
Please visit the project's homepage at https://metacpan.org/release/App-html2text.
Source repository is at https://github.com/perlancar/perl-App-html2text.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=App-html2text
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
html2text. CLI for this module.
html2txt. a simpler HTML rendering utility which basically just strips HTML tags from HTML source code.
This software is copyright (c) 2019 by firstname.lastname@example.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.