diff --git a/modules/templates/util_render_test.go b/modules/templates/util_render_test.go index db0b5e807f..5fea4d9a16 100644 --- a/modules/templates/util_render_test.go +++ b/modules/templates/util_render_test.go @@ -61,7 +61,7 @@ func TestMain(m *testing.M) { func TestApostrophesInMentions(t *testing.T) { rendered := RenderMarkdownToHtml(context.Background(), "@mention-user's comment") - assert.EqualValues(t, "
@mention-user's comment
\n", rendered) + assert.EqualValues(t, template.HTML("@mention-user's comment
\n"), rendered) } func TestRenderCommitBody(t *testing.T) {