From d67d5f3ad4087a0061d8b5557ed6158785c47837 Mon Sep 17 00:00:00 2001 From: LuisStruggle <18300767078@163.com> Date: Mon, 12 Dec 2022 14:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=EF=BC=9AHtmlUtil=E4=B8=ADcle?= =?UTF-8?q?anHtmlTag=E6=96=B9=E6=B3=95=E5=92=8CremoveScriptTag=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E7=9A=84=E2=80=9C=E6=9B=BF=E6=8D=A2=E7=A9=BA=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E2=80=9D=EF=BC=8C=E4=BF=AE=E6=94=B9=E4=B8=BA=E9=9D=99?= =?UTF-8?q?=E6=80=81=E5=B8=B8=E9=87=8F=E7=A9=BA=E5=AD=97=E7=AC=A6=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hutool-http/src/main/java/cn/hutool/http/html/HtmlUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hutool-http/src/main/java/cn/hutool/http/html/HtmlUtil.java b/hutool-http/src/main/java/cn/hutool/http/html/HtmlUtil.java index f381c4c97..710dfb6b8 100755 --- a/hutool-http/src/main/java/cn/hutool/http/html/HtmlUtil.java +++ b/hutool-http/src/main/java/cn/hutool/http/html/HtmlUtil.java @@ -93,7 +93,7 @@ public class HtmlUtil { * @return 清除标签后的文本 */ public static String cleanHtmlTag(final String content) { - return ReUtil.replaceAll(content, RE_HTML_MARK, ""); + return ReUtil.replaceAll(content, RE_HTML_MARK, StrUtil.EMPTY); } /** @@ -103,7 +103,7 @@ public class HtmlUtil { * @return 清除标签后的文本 */ public static String removeScriptTag(final String content) { - return ReUtil.replaceAll(content, RE_SCRIPT, ""); + return ReUtil.replaceAll(content, RE_SCRIPT, StrUtil.EMPTY); } /**