html2text

Converts HTML documents to clean, readable plain text format

brewmacoslinux
Try with needOr install directly
Source

About

Advanced HTML-to-text converter

Commands

html2text

Examples

Convert an HTML file to plain text$ html2text input.html > output.txt
Convert HTML from a URL and display in terminal$ html2text https://example.com
Convert HTML with specific formatting options$ html2text -b 80 input.html