html2text

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 7, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	Title string
	Text  string
	Image string
}

func HTMLToText

func HTMLToText(uri string, body []byte) (*Page, error)

HTMLToText uses a 'readability' algorithm to extract usable text from a HTML page. This is often less than the actual page text, unfortunately.

Source Files

  • html2text.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址