Documentation ¶
Index ¶
- func AdoptChildren(dst, src *html.Node)
- func AppendText(n *html.Node, text string)
- func Attr(n *html.Node, name string) string
- func Children(n *html.Node) iter.Seq[*html.Node]
- func Clone(n *html.Node) *html.Node
- func DeleteAttr(n *html.Node, key string)
- func LastChildOrNew(p *html.Node, tag string, attrs ...string) *html.Node
- func Map[T any](tbl TableNodes, f func(*html.Node) T) [][]T
- func New(tag string, attrs ...string) *html.Node
- func RemoveAll(nodes []*html.Node)
- func ReplaceWith(old, new *html.Node)
- func SetAttr(n *html.Node, key, value string)
- func SetInnerHTML(n *html.Node, s string) error
- func Tables(root *html.Node) iter.Seq2[*html.Node, TableNodes]
- func UnnestChildren(n *html.Node)
- type TableNodes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdoptChildren ¶
func AppendText ¶
func DeleteAttr ¶
func RemoveAll ¶
RemoveAll orphans the nodes it is passed. It ignores a node if the node is nil or already an orphan.
func ReplaceWith ¶
func UnnestChildren ¶
UnnestChildren has all of the children of node adopted by its parent, and then it removes the node.
Types ¶
type TableNodes ¶
func (TableNodes) Label ¶
func (rows TableNodes) Label() string
Click to show internal directories.
Click to hide internal directories.