zss
2025-07-14 26103c72e1ebd8ec39d4f70808f524a9e3c6689e
src/main/java/com/ruoyi/common/xss/XssValidator.java
@@ -27,8 +27,13 @@
    public static boolean containsHtml(String value)
    {
        StringBuilder sHtml = new StringBuilder();
        Pattern pattern = Pattern.compile(HTML_PATTERN);
        Matcher matcher = pattern.matcher(value);
        return matcher.matches();
        while (matcher.find())
        {
            sHtml.append(matcher.group());
        }
        return pattern.matcher(sHtml).matches();
    }
}