Documentation ¶
Overview ¶
Package safe provides funcs that will allow trusted content into a template without being escaped.
Portions Copyright The Hugo Authors and covered by both an MIT license for the original code, and an Apache license for later modifications. https://github.com/spf13/hugo/blob/master/tpl/template_funcs.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSS ¶
CSS returns a given string as html/template CSS content
Use of this func presents a security risk: the encapsulated content should come from a trusted source, as it will be included verbatim in the template output
func HTML ¶
HTML returns a given string as html/template HTML content
Use of this func presents a security risk: the encapsulated content should come from a trusted source, as it will be included verbatim in the template output
func HTMLAttr ¶
HTMLAttr returns a given string as html/template HTMLAttr content
Use of this func presents a security risk: the encapsulated content should come from a trusted source, as it will be included verbatim in the template output
Types ¶
This section is empty.