master
yihua.huang 2014-08-18 10:54:24 +08:00
parent 9866297ec4
commit 4446669c24
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ public class HtmlTest {
@Test
public void testDisableJsoupHtmlEntityEscape() throws Exception {
Html.DISABLE_HTML_ENTITY_ESCAPE = true;
Html html = new Html("aaaaaaa&b");
assertThat(html.regex("(aaaaaaa&b)").toString()).isEqualTo("aaaaaaa&b");
}