Documentation ¶
Index ¶
- func ExtractTextFromHTMLFile(name string, charsets ...string) (string, error)
- func ExtractTextFromHTMLNode(node *html.Node) string
- func ExtractTextFromHTMLString(html string) (string, error)
- func FindAndGetHeadMetas(doc *html.Node) map[string]string
- func FindAndGetHeadTitle(doc *html.Node) string
- func FindAndGetHtmlLang(doc *html.Node) string
- func FindElementNode(n *html.Node, tag atom.Atom) *html.Node
- func FindElementNodes(root *html.Node, tag atom.Atom) (ns []*html.Node)
- func FindNodeAttr(n *html.Node, k string) *html.Attribute
- func HTMLFileTextify(w io.Writer, name string, charsets ...string) error
- func HTMLReaderTextify(w io.Writer, r io.Reader) error
- func HTMLStringTextify(w io.Writer, html string) error
- func IterElementNodes(n *html.Node, iter func(n *html.Node) error) error
- func IterNodes(n *html.Node, iter func(n *html.Node) error) error
- func ParseHTMLFile(name string, charsets ...string) (*html.Node, error)
- func Stringify(n *html.Node) string
- func Textify(n *html.Node, w io.Writer) error
- type Textifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractTextFromHTMLFile ¶
func ExtractTextFromHTMLNode ¶
func FindAndGetHeadMetas ¶ added in v1.0.16
func FindAndGetHeadTitle ¶ added in v1.0.16
func FindAndGetHtmlLang ¶ added in v1.0.16
func IterElementNodes ¶ added in v1.0.16
Types ¶
Click to show internal directories.
Click to hide internal directories.