Commit 2f842227 by RuoYi

添加HTML过滤器,用于去除XSS漏洞隐患

parent 98dd1563
......@@ -58,7 +58,7 @@ public class EscapeUtil
*/
public static String clean(String content)
{
return content.replaceAll(RE_HTML_MARK, "");
return new HTMLFilter().filter(content);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment