~srivathsan/blaze

f16259862ec483f239f4cc832388a83179cd8545 — Srivathsan Murali 3 years ago 1125d5f
add escapeHTML template function
1 files changed, 4 insertions(+), 0 deletions(-)

M builder/templates.go
M builder/templates.go => builder/templates.go +4 -0
@@ 2,6 2,7 @@ package builder

import (
	"bytes"
	"html"
	"log"
	"path"
	"path/filepath"


@@ 48,6 49,9 @@ func getTemplateFuncs(config *config.BlazeConfig) template.FuncMap {

			return pages
		},
		"escapeHTML": func(content string) string {
			return html.EscapeString(content)
		},
	}
}