mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-22 21:42:50 +02:00
committed by
Bjørn Erik Pedersen
parent
ef12d169c8
commit
b4c5df42ff
@@ -65,3 +65,23 @@ foo
|
||||
b.AssertFileContent("public/p3/index.html", "_<h2 id=\"foo\">foo</h2>\n<p>bar</p>\n_")
|
||||
b.AssertFileContent("public/p4/index.html", "_<p id=\"bar\">foo</p>\n_")
|
||||
}
|
||||
|
||||
func TestXMLEscape(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
files := `
|
||||
-- config.toml --
|
||||
disableKinds = ['section','sitemap','taxonomy','term']
|
||||
-- content/p1.md --
|
||||
---
|
||||
title: p1
|
||||
---
|
||||
a **b** c
|
||||
<!--more-->
|
||||
`
|
||||
b := hugolib.Test(t, files)
|
||||
|
||||
b.AssertFileContent("public/index.xml", `
|
||||
<description><p>a <strong>b</strong> c</p></description>
|
||||
`)
|
||||
}
|
||||
|
Reference in New Issue
Block a user