html

package
v0.19.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package html parses HTML and converts it into Growse's own DOM.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(root *xhtml.Node) (*dom.Document, error)

Convert translates an x/net/html tree into a Growse DOM tree.

func Parse

func Parse(reader io.Reader) (*dom.Document, error)

Parse parses HTML syntax and returns a Growse-owned document.

func ParseFragment added in v0.14.0

func ParseFragment(source, contextTag string) (*dom.Document, error)

ParseFragment parses an HTML fragment in the supplied element context.

func SerializeChildren added in v0.14.0

func SerializeChildren(parent *dom.Node) (string, error)

SerializeChildren renders an element's child nodes as an HTML fragment.

func SerializeNode added in v0.15.0

func SerializeNode(node *dom.Node) (string, error)

SerializeNode renders one DOM node and its subtree as HTML.

Types

This section is empty.

Jump to

Keyboard shortcuts

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