Merge pull request #74 from mprobst/sanitize_test
Add a test for the correct handling of escaped entities in HTML.
This commit is contained in:
commit
50b8e0370b
|
@ -218,6 +218,17 @@ func TestRawHtmlTag(t *testing.T) {
|
|||
doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE|HTML_SANITIZE_OUTPUT)
|
||||
}
|
||||
|
||||
func TestQuoteEscaping(t *testing.T) {
|
||||
tests := []string{
|
||||
"<p>Here are some "quotes".</p>\n",
|
||||
"<p>Here are some "quotes".</p>\n",
|
||||
|
||||
"<p>Here are some “quotes”.</p>\n",
|
||||
"<p>Here are some \u201Cquotes\u201D.</p>\n",
|
||||
}
|
||||
doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE|HTML_SANITIZE_OUTPUT)
|
||||
}
|
||||
|
||||
func TestEmphasis(t *testing.T) {
|
||||
var tests = []string{
|
||||
"nothing inline\n",
|
||||
|
|
Loading…
Reference in New Issue