嗨,我有一个 JSP 文件,我在其中加载了两个标签库:
taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"
taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml"
我收到一个错误:
org.apache.jasper.JasperException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x1b) was found in the CDATA section.
原因是这一行:
var enabledLoginCharacters = /^[\w \. \- \! \" \§ \$ \% \& \/ \( \) \= \? \* \+ \# \< \> \, \; \: \@]*$/;
如何重写这一行,使其不会导致 XML 错误?