html

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: OSL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VoidElement = map[string]bool{
	"br":    true,
	"img":   true,
	"input": true,
	"link":  true,
	"meta":  true,
}

html.spec.whatwg.org/multipage/syntax.html#void-elements

Functions

This section is empty.

Types

type Lexer added in v1.26.0

type Lexer struct {
	*html.Lexer
	html.TokenType
	// contains filtered or unexported fields
}

godocs.io/github.com/tdewolff/parse/v2/html#Lexer

func NewLexer added in v1.26.0

func NewLexer(r io.Reader) Lexer

godocs.io/github.com/tdewolff/parse/v2/html#NewLexer

func (*Lexer) Bytes added in v1.26.0

func (l *Lexer) Bytes() []byte

developer.mozilla.org/docs/Web/API/Node/textContent

func (Lexer) GetAttr added in v1.26.0

func (l Lexer) GetAttr(key string) string

developer.mozilla.org/docs/Web/API/Element/getAttribute

func (Lexer) HasAttr added in v1.26.0

func (l Lexer) HasAttr(key string) bool

developer.mozilla.org/docs/Web/API/Element/hasAttribute

func (*Lexer) NextAttr added in v1.26.0

func (l *Lexer) NextAttr(key, val string) bool

developer.mozilla.org/docs/Web/API/Document/getElementsByClassName

func (*Lexer) NextTag added in v1.26.0

func (l *Lexer) NextTag(name string) bool

developer.mozilla.org/docs/Web/API/Document/getElementsByTagName

func (Lexer) Render added in v1.26.0

func (l Lexer) Render(w io.Writer, indent string) error

godocs.io/golang.org/x/net/html#Render

func (Lexer) TagName added in v1.26.0

func (l Lexer) TagName() string

developer.mozilla.org/docs/Web/API/Element/tagName

Jump to

Keyboard shortcuts

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