From 5f57da864dc0c6f3e9d19004c0d9f689a46e17ed Mon Sep 17 00:00:00 2001 From: Looly Date: Fri, 10 Jan 2025 09:58:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0HtmlUtil.cleanEmptyTag?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=88pr#3838@Github=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 3 ++- hutool-http/src/test/java/cn/hutool/http/HtmlUtilTest.java | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61b3553bd..aa1d3e64d 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,10 +2,11 @@ # 🚀Changelog ------------------------------------------------------------------------------------------------------------- -# 5.8.36(2025-01-09) +# 5.8.36(2025-01-10) ### 🐣新特性 * 【crypto 】 增加BCUtil.decodeECPrivateKey方法(issue#3829@Github) +* 【core 】 增加HtmlUtil.cleanEmptyTag方法(pr#3838@Github) ### 🐞Bug修复 * 【aop 】 修复ProxyUtil可能的空指针问题(issue#IBF20Z@Gitee) * 【core 】 修复XmlUtil转义调用方法错误问题,修复XmlEscape未转义单引号问题(pr#3837@Github) diff --git a/hutool-http/src/test/java/cn/hutool/http/HtmlUtilTest.java b/hutool-http/src/test/java/cn/hutool/http/HtmlUtilTest.java index 2c4487768..585c61266 100644 --- a/hutool-http/src/test/java/cn/hutool/http/HtmlUtilTest.java +++ b/hutool-http/src/test/java/cn/hutool/http/HtmlUtilTest.java @@ -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 = "

"; String result = HtmlUtil.cleanEmptyTag(str); assertEquals("", result);