@Test
void shouldFilterTagsInCode() {

    IssueBuilder builder = new IssueBuilder();
    Issue issue = builder.setLineStart(2).build();
    SourcePrinter printer = new SourcePrinter();
    Document document = Jsoup.parse(printer.render(asStream("format-jelly.txt"), issue,
            NO_DESCRIPTION, ICON_URL));
    assertThat(document.getElementsByTag("code").html())
            .isEqualTo("&lt;l:main-panel&gt;Before&lt;script&gt;execute&lt;/script&gt; Text&lt;/l:main-panel&gt;\n"
                    + "&lt;l:main-panel&gt;Warning&lt;script&gt;execute&lt;/script&gt; Text&lt;/l:main-panel&gt;\n"
                    + "&lt;l:main-panel&gt;After&lt;script&gt;execute&lt;/script&gt; Text&lt;/l:main-panel&gt;");
}