I have followed this tutorial: http://golang.org/doc/articles/wiki/final.go and have slightly modified it for my needs/wants. The problem is I would like to support HTML in
I created a custom function for the template as follows:
func noescape(str string) template.HTML { return template.HTML(str) } var fn = template.FuncMap{ "noescape": noescape, }
Then on your template:
{{ noescape $x.Body }}