macOS
brew install html2textlocal Homebrew formula metadata
sudo port install html2textMacPorts ports tree · textproc/html2text/Portfile · 来源: api.github.com
安装
brew install html2textlocal Homebrew formula metadata
sudo port install html2textMacPorts ports tree · textproc/html2text/Portfile · 来源: api.github.com
sudo apk add html2textAlpine Linux edge package indexes · html2text · 来源: dl-cdn.alpinelinux.org
sudo apt install html2textDebian stable package indexes · html2text · 来源: deb.debian.org
nix profile install nixpkgs#html2textnixpkgs package indexes · pkgs/by-name/ht/html2text/package.nix · 来源: api.github.com
sudo dnf install python3-html2textFedora Rawhide package metadata · python3-html2text · 来源: dl.fedoraproject.org
sudo pacman -S python-html2textArch Linux sync databases · python-html2text · 来源: geo.mirror.pkgbuild.com
sudo zypper install python313-html2textopenSUSE Tumbleweed package metadata · python313-html2text · 来源: download.opensuse.org
概览
Advanced HTML-to-text converter
历史
html2text renders HTML into terminal- and email-friendly plain text. The grobian-maintained project is a continuation of Martin Bayer's older html2text, with a focus on mail clients, terminal width, links, tables, character sets, and ANSI rendering.
The README states that the repository continues the project formerly hosted at mbayer.de/html2text and carries patches that were no longer available from the original sources. It also states that version 2.0 made the GitLab repository the official home.
GitLab tag metadata places v2.0.0 in 2020, followed by v2.1.x in 2022, v2.2.x in 2023, and v2.3.0 and v2.4.0 in 2025. The ChangeLog shows that later work added autotools-based builds, compatibility flags, whitespace normalization, ANSI escape output, color handling, and direct URL retrieval.
The tool is packaged across Homebrew, Debian, Ubuntu, Alpine, MacPorts, Nix, Arch, and Fedora-family ecosystems. Its adoption is helped by a stable command name and by mailcap integration examples for text-mode mail clients such as Mutt.
The README's central workflow is rendering text/html parts for terminal email. It shows a mailcap entry using html2text with ANSI output, link references, charset conversion, and terminal-width wrapping, plus Mutt configuration that auto-views HTML mail through the converter.
html2text is package-nerd material because it solves a stubborn Unix desktop problem: making HTML email tolerable in text-mode tools. It is small enough for a mailcap line, but specialized enough to preserve tables, links, alignment, and character-set behavior better than a bare text dump.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
html2text | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:html2text |
|---|---|
| 版本 | 2.4.0 |
| 软件包管理器 | Homebrew |
| 主页 | https://gitlab.com/grobian/html2text |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
html2text 2.2.3-3
advanced HTML to text converter
https://gitlab.com/grobian/html2text
sudo apt install html2texthtml2text
nix profile install nixpkgs#html2texthtml2text 1.3.2a-28
advanced HTML to text converter
https://github.com/grobian/html2text
sudo apt install html2texthtml2text 2.4.0-r0
html2text is a command line utility, written in C++, that converts HTML documents into plain text.
https://github.com/grobian/html2text/
sudo apk add html2texthtml2text-doc 2.4.0-r0
html2text is a command line utility, written in C++, that converts HTML documents into plain text. (documentation)
https://github.com/grobian/html2text/
sudo apk add html2text-docpython3-html2text 2025.4.15-8.fc45
Convert HTML to Markdown-formatted text
https://github.com/Alir3z4/html2text/
sudo dnf install python3-html2textpython-html2text 2025.4.15-2
A HTML to markdown-structured text converter
https://github.com/Alir3z4/html2text
sudo pacman -S python-html2textpython313-html2text 2025.4.15-1.5
Python script for turning HTML into Markdown text
https://github.com/Alir3z4/html2text/
sudo zypper install python313-html2textpython314-html2text 2025.4.15-1.5
Python script for turning HTML into Markdown text
https://github.com/Alir3z4/html2text/
sudo zypper install python314-html2texthtml2text
sudo port install html2text来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.