mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
增加HtmlUtil.cleanEmptyTag方法(pr#3838@Github)
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
package cn.hutool.http;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
|
||||
/**
|
||||
* Html单元测试
|
||||
*
|
||||
@@ -78,7 +79,7 @@ public class HtmlUtilTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
public void cleanEmptyTag() {
|
||||
public void cleanEmptyTagTest() {
|
||||
String str = "<p></p><div></div>";
|
||||
String result = HtmlUtil.cleanEmptyTag(str);
|
||||
assertEquals("", result);
|
||||
|
Reference in New Issue
Block a user