diff --git a/docs/content/templates/go-templates.md b/docs/content/templates/go-templates.md index ccfa3a96b..056f78e99 100644 --- a/docs/content/templates/go-templates.md +++ b/docs/content/templates/go-templates.md @@ -240,6 +240,12 @@ By default, Go Templates remove HTML comments from output. This has the unfortun {{ "" | safeHtml }} +Alternatively, use the backtick (`` ` ``) to quote the IE conditional comments, avoiding the tedious task of escaping every double quotes (`"`) inside, as demonstrated in the [examples](http://golang.org/pkg/text/template/#hdr-Examples) in the Go text/template documentation, e.g.: + +``` +{{ `` | safeHtml }} +``` + ## Context (a.k.a. the dot) The most easily overlooked concept to understand about Go templates is that `{{ . }}`