Documentation ¶
Index ¶
Constants ¶
View Source
const ( JSEscapeKey = "jsEscape" HTMLEscapeKey = "htmlEscape" )
Keys to be used in templates for the functions in this package.
Variables ¶
View Source
var JSEscape = template.JSEscapeString
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.