mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	HTML过滤器不替换双引号为",防止json格式无效
This commit is contained in:
		@@ -522,7 +522,8 @@ public final class HTMLFilter
 | 
			
		||||
                final String one = m.group(1); // (>|^)
 | 
			
		||||
                final String two = m.group(2); // ([^<]+?)
 | 
			
		||||
                final String three = m.group(3); // (<|$)
 | 
			
		||||
                m.appendReplacement(buf, Matcher.quoteReplacement(one + regexReplace(P_QUOTE, """, two) + three));
 | 
			
		||||
                // 不替换双引号为",防止json格式无效 regexReplace(P_QUOTE, """, two)
 | 
			
		||||
                m.appendReplacement(buf, Matcher.quoteReplacement(one + two + three));
 | 
			
		||||
            }
 | 
			
		||||
            m.appendTail(buf);
 | 
			
		||||
            return buf.toString();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user