diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java index 0a2a38a688..5e9c4fac68 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseFileService.java @@ -77,6 +77,7 @@ import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.*; import java.util.concurrent.atomic.AtomicInteger; +import java.util.regex.MatchResult; import java.util.regex.Matcher; import java.util.regex.Pattern; import java.util.stream.Collectors; @@ -859,11 +860,17 @@ public class FunctionalCaseFileService { public String parseHtml(String html) { Pattern pattern = Pattern.compile("
]*>(.*?)
"); Matcher matcher = pattern.matcher(html); - if (matcher.find()) { - String content = matcher.group(1); - return content; + StringBuilder result = new StringBuilder(); + List