modulepackage
0.0.0-20221113080732-ab33692b5bae
Repository: https://github.com/diamondburned/html2text.git
Documentation: pkg.go.dev
# README
html2text
html2text converts HTML to plain text.
This is useful for sending fancy HTML emails with an equivalently formatted text as a fallback (e.g. for people who don't allow HTML emails or have other display issues).
This package has been forked from the original html2text which removes some of its quirks, such as having unnecessary punctuations or not supporting CJK.
Install
go get github.com/diamondburned/html2text@latest
For usage, see the Go package documentation for an example.
# Packages
No description provided by the author
# Functions
FromHTMLNode renders text output from a pre-parsed HTML document.
FromReader renders text output after parsing HTML for the specified io.Reader.
FromString parses HTML from the input string, then renders the text form.
NewPrettyTablesOptions creates PrettyTablesOptions with default settings.
# Structs
Options provide toggles and overrides to control specific rendering behaviors.
PrettyTablesOptions overrides tablewriter behaviors.