Documentation ¶
Index ¶
- Constants
- func BuildOptions[T any, K comparable](a []T, selected K, fn func(T) (K, any, string)) string
- func CloseTag(str string) string
- func GetSelfCloseTags() map[string]string
- func RenderedHtml(t *template.Template, data map[string]any) (r string, err error)
- func SetSelfCloseTags(m map[string]string)
- func SpecialChars(text string, flag ...int) string
- func SpecialCharsDecode(text string, flag ...int) string
- func StripTags(str, allowable string) string
- func StripTagsX(str, allowable string) string
- func UnClosedTag(s []string) []string
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 GetSelfCloseTags ¶
func RenderedHtml ¶
func SetSelfCloseTags ¶
func SpecialChars ¶
func SpecialCharsDecode ¶
func StripTagsX ¶
func UnClosedTag ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.