mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-04-05 17:37:49 +08:00
!86 预览图片的url中如果包含&会导致.click报错儿
Merge pull request !86 from ASelince丶C/N/A
This commit is contained in:
commit
f593b0cf24
@ -104,7 +104,9 @@ public class KkFileUtils {
|
||||
public static String htmlEscape(String input) {
|
||||
if(StringUtils.hasText(input)){
|
||||
//input = input.replaceAll("\\{", "%7B").replaceAll("}", "%7D").replaceAll("\\\\", "%5C");
|
||||
return HtmlUtils.htmlEscape(input, "UTF-8");
|
||||
String htmlStr = HtmlUtils.htmlEscape(input, "UTF-8");
|
||||
//& -> &
|
||||
return htmlStr.replace("&", "&");
|
||||
}
|
||||
return input;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user