html2text icon indicating copy to clipboard operation
html2text copied to clipboard

Golang HTML to plaintext conversion library

Results 24 html2text issues
Sort by recently updated
recently updated
newest added

Added code and tests. Setting the minimum column width will ensure that all outputted columns are at least that number of characters wide (plus cell padding). It makes some tables...

Hello! While packaging your library for Debian, I have found that the testdata files were under mod 755. I have changed to 644, since it does not make sense to...

Any chance to get an option which probably take an interface `func Custom(*html.Node) string` then html2text will convert the node to text base on the func return? My use case...

Hi, I came across your library whilst initially searching for something that could translate HTML pages into Gopher directories. I found nothing. This library is the closest thing I can...

using these two options html2text.Options{OmitLinks: true} html2text.Options{PrettyTables: true} Update: ====================== when using the prettytables option as false, wont panic. Error: ====================== panic: runtime error: index out of range goroutine 154...

does it sanitise - or any other similar exploit?

On top of #63, this adds whitespace preservation as an option, so that the input formatting can be more faithfully retained.

Depends on #42, and migrates to the standard of packaging tests under a `_test` module.