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 ecb13d0635..8659892cab 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,9 +77,6 @@ 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; /** @@ -861,22 +858,9 @@ public class FunctionalCaseFileService { } public String parseHtml(String html) { - Pattern pattern = Pattern.compile("]*>(.*?)

"); - Matcher matcher = pattern.matcher(html); - StringBuilder result = new StringBuilder(); - List list = matcher.results().toList(); - if (CollectionUtils.isNotEmpty(list)) { - for (MatchResult matchResult : list) { - result.append(matchResult.group(1)); - } - } else { - result.append(html); - } - - return result.toString(); + return html.replaceAll("]*>", ""); } - /** * 获取模块map *