后台做个处理:(利用org.apache.commons.lang包里的StringEscapeUtils解码方法)
String category = StringEscapeUtils.unescapeHtml(request.getParameter("category"));
//必须从request里拿参数,不能在方法上用参数名称接收,否则无法成功转义
后台做个处理:(利用org.apache.commons.lang包里的StringEscapeUtils解码方法)
String category = StringEscapeUtils.unescapeHtml(request.getParameter("category"));
//必须从request里拿参数,不能在方法上用参数名称接收,否则无法成功转义