xiatian 5 жил өмнө
parent
commit
57bdd98551

+ 1 - 1
examcloud-core-questions-service/src/main/java/cn/com/qmth/examcloud/core/questions/service/util/ExportPaperUtil.java

@@ -337,7 +337,7 @@ public class ExportPaperUtil {
                 if (diposeFillBlank) {
                     text = text.replaceAll("###", "______").replaceAll("##", "______");
                 }
-                text = text.replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\u0000", " ");
+                text = text.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\u0000", " ");
                 se.setValue(text);
             } else if (ce instanceof Element) {
                 if ("img".equals(ce.nodeName())) {