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:
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)
|
||||
|
||||
var b bytes.Buffer
|
||||
fmt.Fprintf(&b, meta, p.Title)
|
||||
fmt.Fprintf(&b, meta, html.EscapeString(p.Title))
|
||||
|
||||
var pre bool
|
||||
var list bool
|
||||
|
Loading…
Reference in New Issue
Block a user