Browse Source

Merge branch 'cygx_4.0' of hongze/hongze_cygx into master

hongze 3 years ago
parent
commit
500a4ec9a9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controllers/article.go

+ 1 - 0
controllers/article.go

@@ -93,6 +93,7 @@ func (this *ArticleController) Detail() {
 			return
 			return
 		}
 		}
 		detail.Body = html.UnescapeString(detail.Body)
 		detail.Body = html.UnescapeString(detail.Body)
+		detail.Body = strings.Replace(detail.Body, "pre", "div", -1)
 		//detail.Abstract = html.UnescapeString(detail.Abstract)
 		//detail.Abstract = html.UnescapeString(detail.Abstract)
 		detail.Abstract, _ = services.GetReportContentTextSub(detail.Abstract)
 		detail.Abstract, _ = services.GetReportContentTextSub(detail.Abstract)
 		if companyPermission == "" {
 		if companyPermission == "" {