mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
增加HtmlUtil.cleanEmptyTag方法(pr#3838@Github)
This commit is contained in:
parent
e097df5bdb
commit
5f57da864d
@ -2,10 +2,11 @@
|
|||||||
# 🚀Changelog
|
# 🚀Changelog
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
# 5.8.36(2025-01-09)
|
# 5.8.36(2025-01-10)
|
||||||
|
|
||||||
### 🐣新特性
|
### 🐣新特性
|
||||||
* 【crypto 】 增加BCUtil.decodeECPrivateKey方法(issue#3829@Github)
|
* 【crypto 】 增加BCUtil.decodeECPrivateKey方法(issue#3829@Github)
|
||||||
|
* 【core 】 增加HtmlUtil.cleanEmptyTag方法(pr#3838@Github)
|
||||||
### 🐞Bug修复
|
### 🐞Bug修复
|
||||||
* 【aop 】 修复ProxyUtil可能的空指针问题(issue#IBF20Z@Gitee)
|
* 【aop 】 修复ProxyUtil可能的空指针问题(issue#IBF20Z@Gitee)
|
||||||
* 【core 】 修复XmlUtil转义调用方法错误问题,修复XmlEscape未转义单引号问题(pr#3837@Github)
|
* 【core 】 修复XmlUtil转义调用方法错误问题,修复XmlEscape未转义单引号问题(pr#3837@Github)
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
package cn.hutool.http;
|
package cn.hutool.http;
|
||||||
|
|
||||||
import static org.junit.jupiter.api.Assertions.*;
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
|
|
||||||
|
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Html单元测试
|
* Html单元测试
|
||||||
*
|
*
|
||||||
@ -78,7 +79,7 @@ public class HtmlUtilTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void cleanEmptyTag() {
|
public void cleanEmptyTagTest() {
|
||||||
String str = "<p></p><div></div>";
|
String str = "<p></p><div></div>";
|
||||||
String result = HtmlUtil.cleanEmptyTag(str);
|
String result = HtmlUtil.cleanEmptyTag(str);
|
||||||
assertEquals("", result);
|
assertEquals("", result);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user