1
0
mirror of https://git.sr.ht/~adnano/kiln synced 2024-11-23 04:42:02 +01:00

Escape page titles

This commit is contained in:
adnano 2020-09-29 14:12:40 -04:00
parent 0d5d8e9102
commit 9de0d79bff

@ -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