mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
html防止注入转译,增加不断开空格(nbsp)转译
This commit is contained in:
@@ -176,7 +176,7 @@ public interface StrPool {
|
||||
|
||||
|
||||
/**
|
||||
* 字符串常量:HTML 空格转义 {@code " " -> " "}
|
||||
* 字符串常量:HTML 不间断空格转义 {@code " " -> " "}
|
||||
*/
|
||||
String HTML_NBSP = XmlUtil.NBSP;
|
||||
|
||||
|
@@ -67,7 +67,7 @@ import java.util.Map;
|
||||
public class XmlUtil {
|
||||
|
||||
/**
|
||||
* 字符串常量:XML 空格转义 {@code " " -> " "}
|
||||
* 字符串常量:XML 不间断空格转义 {@code " " -> " "}
|
||||
*/
|
||||
public static final String NBSP = " ";
|
||||
|
||||
|
Reference in New Issue
Block a user