Escape page titles

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

View file

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