Roc 1 долоо хоног өмнө
parent
commit
12a65899b9

+ 1 - 1
controllers/llm/report.go

@@ -147,7 +147,7 @@ func (c *RagEtaReportController) ArticleDetail() {
 			content = reportInfo.Content
 			// 如果是rai报告,则使用纯文本的报告内容
 			if reportInfo.RaiReportId > 0 {
-				content = strings.ReplaceAll(item.TextContent, `\n`, `<br />`)
+				content = strings.ReplaceAll(item.TextContent, "\\n", "<br />")
 			}
 		} else {
 			// 章节报告