语言
/v1/html-to-text/convert
去除所有 HTML 标签并返回纯文本。 标题、列表和表格将转换为可读的文本格式。 (可选)保留链接 URL 并设置自动换行列。
The HTML content to convert.
Include link URLs in the plain text output (e.g., "Botoi [https://botoi.com]").
Wrap text at this column width. Set to 0 to disable wrapping.
curl -X POST https://api.botoi.com/v1/html-to-text/convert \ -H "Content-Type: application/json" \ -d '{"html":"<h1>Welcome</h1><p>Visit <a href=\"https://botoi.com\">Botoi</a>.</p>","preserveLinks":true,"wordwrap":80}'
为 HTML 营销或交易电子邮件创建文本/纯文本后备,以便它们在不支持 HTML 的客户端中呈现。
抓取页面,将 HTML 传递到此端点,并获取干净的文本以进行内容分析、摘要或存档。
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.