【update】拆分替换的测试1

This commit is contained in:
fengchenchen
2024-03-28 13:49:32 +08:00
parent 4fb3fbb639
commit e17532f182
@@ -254,6 +254,7 @@ public class FileSpiltService {
if (smalltext==null){
continue;
}
smalltext = smalltext.replaceAll("<", "&lt;").replaceAll(">", "&gt;");
switch (subscript) {
case BASELINE:
stringBuilder.append(smalltext);
@@ -1041,7 +1042,7 @@ public class FileSpiltService {
// 像每个条款中依次插入每一段的内容
public static void addItermsConditionsText(SarFileSplitItemsEO message, List<SarFileSplitItemsValEO> itemsValList, String p, ParagraphAlignment alignment) {
if (StringUtils.isNotBlank(p)){
p = p.replace("<", "&lt;").replace(">", "&gt;");
//p = p.replace("<", "&lt;").replace(">", "&gt;");
}
message.getItemsCondi().add(p);
if (ParagraphAlignment.CENTER.equals(alignment)){