diff --git a/html.go b/html.go index a685ae5..cf176cc 100644 --- a/html.go +++ b/html.go @@ -664,7 +664,7 @@ func isHtmlTag(tag []byte, tagname string) bool { break } - if tag[i] != tagname[j] { + if strings.ToLower(string(tag[i]))[0] != tagname[j] { return false } } diff --git a/inline_test.go b/inline_test.go index fbc0eaa..0403339 100644 --- a/inline_test.go +++ b/inline_test.go @@ -67,6 +67,9 @@ func TestRawHtmlTag(t *testing.T) { tests := []string{ "zz \n", "

zz p {}

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

zz p {}

\n", } doTestsInlineParam(t, tests, 0, HTML_SKIP_STYLE) }