mirror of
https://git.sr.ht/~adnano/kiln
synced 2024-11-27 20:14:20 +00:00
Escape page titles
This commit is contained in:
parent
0d5d8e9102
commit
9de0d79bff
2
kiln.go
2
kiln.go
|
@ -333,7 +333,7 @@ func OutputHTML(p *Page) (path string, content []byte) {
|
||||||
path = filepath.Join(p.Permalink, indexPath)
|
path = filepath.Join(p.Permalink, indexPath)
|
||||||
|
|
||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
fmt.Fprintf(&b, meta, p.Title)
|
fmt.Fprintf(&b, meta, html.EscapeString(p.Title))
|
||||||
|
|
||||||
var pre bool
|
var pre bool
|
||||||
var list bool
|
var list bool
|
||||||
|
|
Loading…
Reference in a new issue