htmlx

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorNode    = html.ErrorNode
	TextNode     = html.TextNode
	DocumentNode = html.DocumentNode
	ElementNode  = html.ElementNode
	CommentNode  = html.CommentNode
	DoctypeNode  = html.DoctypeNode
	RawNode      = html.RawNode
)

Variables

View Source
var (
	Parse = html.Parse
)

Functions

func NodeAttrExists

func NodeAttrExists(node *Node, fn func(attr Attribute) bool) bool

func NodeAttrSearch

func NodeAttrSearch(node *Node, fn func(attr Attribute) bool) string

func NodeTitle

func NodeTitle(node *Node) string

Types

type Attribute

type Attribute = html.Attribute

type Node

type Node = html.Node

func NodeChildren

func NodeChildren(node *Node, childTags ...string) (nodes []*Node)

func NodeSearch

func NodeSearch(node *Node, fn func(node *Node) bool) *Node

type NodeType

type NodeType = html.NodeType

Jump to

Keyboard shortcuts

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