diff --git a/inline_test.go b/inline_test.go index 3ed1485..48bf5f6 100644 --- a/inline_test.go +++ b/inline_test.go @@ -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{ + "

Here are some "quotes".

\n", + "

Here are some "quotes".

\n", + + "

Here are some “quotes”.

\n", + "

Here are some \u201Cquotes\u201D.

\n", + } + doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE|HTML_SANITIZE_OUTPUT) +} + func TestEmphasis(t *testing.T) { var tests = []string{ "nothing inline\n",