Documentation
¶
Index ¶
- 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 GetNodeAttrValue(n *html.Node, k string) string
- func HTML(n *html.Node) (string, error)
- func HTMLFileTextify(w io.Writer, name string, detect int, charsets ...string) error
- func HTMLFileTextifyString(name string, detect int, charsets ...string) (string, error)
- func HTMLNodeTextify(w io.Writer, n *html.Node) error
- func HTMLNodeTextifyString(node *html.Node) string
- func HTMLReaderTextify(w io.Writer, r io.Reader) error
- func HTMLReaderTextifyString(r io.Reader) (string, error)
- func HTMLTextify(w io.Writer, html string) error
- func HTMLTextifyString(html string) (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, detect int, charsets ...string) (*html.Node, error)
- func Stringify(n *html.Node) string
- type Textifier
- func (tf *Textifier) A(n *html.Node) error
- func (tf *Textifier) Blockquote(n *html.Node) error
- func (tf *Textifier) Bold(n *html.Node) error
- func (tf *Textifier) Dd(n *html.Node) error
- func (tf *Textifier) Deep(n *html.Node) error
- func (tf *Textifier) Eol() error
- func (tf *Textifier) HbrDeep(n *html.Node, x int) error
- func (tf *Textifier) Img(n *html.Node) error
- func (tf *Textifier) Italic(n *html.Node) error
- func (tf *Textifier) LbrDeep(n *html.Node) error
- func (tf *Textifier) Li(n *html.Node) error
- func (tf *Textifier) Ol(n *html.Node) error
- func (tf *Textifier) RawDeep(n *html.Node) error
- func (tf *Textifier) RbrDeep(n *html.Node) error
- func (tf *Textifier) Strike(n *html.Node) error
- func (tf *Textifier) Td(n *html.Node) error
- func (tf *Textifier) Text(s string) error
- func (tf *Textifier) Textify(n *html.Node) error
- func (tf *Textifier) Thead(n *html.Node) error
- func (tf *Textifier) Title(n *html.Node) error
- func (tf *Textifier) Tr(n *html.Node) error
- func (tf *Textifier) Ul(n *html.Node) error
- func (tf *Textifier) WbrDeep(n *html.Node) error
- func (tf *Textifier) WrapDeep(n *html.Node, w string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAndGetHeadMetas ¶ added in v1.0.16
func FindAndGetHeadTitle ¶ added in v1.0.16
func FindAndGetHtmlLang ¶ added in v1.0.16
func HTMLFileTextify ¶
func HTMLFileTextifyString ¶ added in v1.0.27
func HTMLNodeTextifyString ¶ added in v1.0.27
func HTMLReaderTextifyString ¶ added in v1.0.27
func HTMLTextifyString ¶ added in v1.0.27
func IterElementNodes ¶ added in v1.0.16
func ParseHTMLFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.