Browse Source

no message

xingzai 1 year ago
parent
commit
a13e018b5a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/article.go

+ 2 - 2
controllers/article.go

@@ -88,8 +88,8 @@ func (this *ArticleController) Detail() {
 	detail.Body = html.UnescapeString(detail.Body)
 	detail.Body = strings.Replace(detail.Body, "<p data-f-id=\"pbf\" style=\"text-align: center; font-size: 14px; margin-top: 30px; opacity: 0.65; font-family: sans-serif;\">Powered by <a href=\"https://www.froala.com/wysiwyg-editor?pb=1\" title=\"Froala Editor\">Froala Editor</a></p>", "", -1)
 	detail.Body = strings.Replace(detail.Body, "pre", "div", -1)
-	//detail.Abstract = html.UnescapeString(detail.Abstract)
-	detail.Abstract, _ = services.GetReportContentTextSubNew(detail.Abstract)
+	detail.Abstract = html.UnescapeString(detail.Abstract)
+	//detail.Abstract, _ = services.GetReportContentTextSubNew(detail.Abstract)
 
 	lyjhTypeMap, _ := services.GetLyjhTypeMap()
 	if _, ok := lyjhTypeMap[detail.CategoryId]; ok {