escapes

package
v5.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JSEscapeKey   = "jsEscape"
	HTMLEscapeKey = "htmlEscape"
)

Keys to be used in templates for the functions in this package.

Variables

JSEscape will escape a string for Javascript

Functions

func HTMLEscape

func HTMLEscape(s string, help hctx.HelperContext) (string, error)

HTMLEscape will escape a string for HTML

func New

func New() hctx.Map

New returns a map of the helpers within this package.

Types

This section is empty.

Jump to

Keyboard shortcuts

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