helpers: Index | Files

package escapes

import ""


Package Files

escapes.go html.go js.go


const (
    JSEscapeKey   = "jsEscape"
    HTMLEscapeKey = "htmlEscape"

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


var JSEscape = template.JSEscapeString

JSEscape will escape a string for Javascript

func HTMLEscape Uses

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

HTMLEscape will escape a string for HTML

func New Uses

func New() hctx.Map

New returns a map of the helpers within this package.

Package escapes imports 2 packages (graph) and is imported by 1 packages. Updated 2019-04-24. Refresh now. Tools for package owners.