mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
Merge pull request #2798 from LuisStruggle/v6-dev
修改:HtmlUtil中cleanHtmlTag方法和removeScriptTag方法的“替换空文本”,修改为静态常量空字符变量
This commit is contained in:
commit
85c1c84af1
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user