diff --git a/lab-plugin/lab-workflow/src/main/java/org/springblade/plugin/workflow/design/service/impl/WfFormServiceImpl.java b/lab-plugin/lab-workflow/src/main/java/org/springblade/plugin/workflow/design/service/impl/WfFormServiceImpl.java index 9210d34..dd72456 100644 --- a/lab-plugin/lab-workflow/src/main/java/org/springblade/plugin/workflow/design/service/impl/WfFormServiceImpl.java +++ b/lab-plugin/lab-workflow/src/main/java/org/springblade/plugin/workflow/design/service/impl/WfFormServiceImpl.java @@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import lombok.AllArgsConstructor; +import net.logstash.logback.encoder.org.apache.commons.lang3.StringEscapeUtils; import org.flowable.bpmn.model.*; import org.flowable.engine.FormService; import org.flowable.engine.HistoryService; @@ -215,6 +216,10 @@ public class WfFormServiceImpl extends BaseServiceImpl imp @Override public WfForm edit(WfFormVO form) { + //> <等符号不要转译成 > < + String content = form.getContent(); + String s = StringEscapeUtils.unescapeHtml4(content); + form.setContent(s); Boolean newVersion = form.getNewVersion(); if (newVersion != null && newVersion) { WfForm oldForm = this.getById(form.getId());