html

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML

type HTML struct {
	Erase map[string]bool
	// contains filtered or unexported fields
}

func New

func New(o *Opts) *HTML

func (*HTML) Iframes

func (h *HTML) Iframes() <-chan string

func (*HTML) Images

func (h *HTML) Images() <-chan string
func (h *HTML) Links() <-chan string

func (*HTML) Process

func (h *HTML) Process(r io.Reader) string

type Opts

type Opts struct {
	ReadImgAlt      bool
	OnlyCleanHtml   bool
	LinkStat        bool
	EraseTags       []string
	SocialCleanText bool // remove `follow me` social networks names from result text
}

func DefaultOpts

func DefaultOpts() *Opts

Jump to

Keyboard shortcuts

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