From 9de0d79bff5f6193fe4f55bd604e3a8dc7d86dac Mon Sep 17 00:00:00 2001 From: adnano Date: Tue, 29 Sep 2020 14:12:40 -0400 Subject: [PATCH] Escape page titles --- kiln.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiln.go b/kiln.go index ae2e787..0368e2a 100644 --- a/kiln.go +++ b/kiln.go @@ -333,7 +333,7 @@ func OutputHTML(p *Page) (path string, content []byte) { path = filepath.Join(p.Permalink, indexPath) var b bytes.Buffer - fmt.Fprintf(&b, meta, p.Title) + fmt.Fprintf(&b, meta, html.EscapeString(p.Title)) var pre bool var list bool