html2text

package module
v0.0.0-...-da7b9b6 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2015 License: MIT Imports: 8 Imported by: 1

README

html2text

Converts HTML into text

Introduction

html2text is a simple golang package for rendering HTML into plaintext.

License

Permissive MIT license.

Documentation

Index

Constants

View Source
const (
	OmitClasses = 1 << iota
	OmitIds
	OmitRoles
)

Variables

This section is empty.

Functions

func AttrHasString

func AttrHasString(n *html.Node, key string, values []string) bool

Returns true if the node has an attribute 'key' containing a value that is a a substring in any string in 'values'.

func FromReader

func FromReader(reader io.Reader, url string, flags int) (string, error)

func FromString

func FromString(input string, url string, flags int) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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