diff --git a/html.go b/html.go index cf176cc..182208d 100644 --- a/html.go +++ b/html.go @@ -28,6 +28,7 @@ const ( HTML_SKIP_STYLE // skip embedded \n", "

zz p {}

\n", + + "\n", + "

alert()

\n", + + "zz \n", + "

zz alert()

\n", + + "zz \n", + "

zz alert()

\n", + + " \n", + "

alert()

\n", } - doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE) + doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE|HTML_SKIP_SCRIPT) } func TestEmphasis(t *testing.T) {