html

package
v0.0.0-...-8aeec60 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EntCompat   = 1
	EntQuotes   = 2
	EntNoQuotes = 4
	EntSpace    = 8
)

Variables

This section is empty.

Functions

func BuildOptions

func BuildOptions[T any, K comparable](a []T, selected K, fn func(T) (K, any, string)) string

func CloseTag

func CloseTag(str string) string

func GetSelfCloseTags

func GetSelfCloseTags() map[string]string

func RenderedHtml

func RenderedHtml(t *template.Template, data map[string]any) (r string, err error)

func SetSelfCloseTags

func SetSelfCloseTags(m map[string]string)

func SpecialChars

func SpecialChars(text string, flag ...int) string

func SpecialCharsDecode

func SpecialCharsDecode(text string, flag ...int) string

func StripTags

func StripTags(str, allowable string) string

func StripTagsX

func StripTagsX(str, allowable string) string

func UnClosedTag

func UnClosedTag(s []string) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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