htmlx

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package htmlx provides facilitirs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IterTree

func IterTree(node *html.Node, f func(node *html.Node))

IterTree calls f recursively for all nodes contained in the tree starting at node.

f is called first recursively for all children (in order), and then for the node itself. The argument to f is guaranteed never to be nil.

func ReplaceLinks(source string, replace func(string) string) string

ReplaceLinks parses source as a html fragment, and then replaces all paths inside <a> and <img> elements with the replace function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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