html

package
v0.0.0-...-6b0313b Latest Latest
Warning

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

Go to latest
Published: May 7, 2023 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeSpaceString

func EscapeSpaceString(s string) string

func EscapeString

func EscapeString(s string) string

func TrimSpace

func TrimSpace(s string) string

func UnescapeString

func UnescapeString(s string) string

Types

type Node

type Node html.Node

func Parse

func Parse(r io.Reader) (*Node, error)

func (*Node) GetAttr

func (n *Node) GetAttr(key string) string

func (*Node) Query

func (n *Node) Query(s Selector) *Node

func (*Node) QueryAll

func (n *Node) QueryAll(s Selector) []*Node

type Selector

type Selector struct {
	// contains filtered or unexported fields
}

func Compile

func Compile(s string) (Selector, error)

func MustCompile

func MustCompile(s string) Selector

func (Selector) String

func (s Selector) String() string

Jump to

Keyboard shortcuts

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