xingzai пре 3 година
родитељ
комит
45b1ef9e87
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      controllers/article.go

+ 1 - 0
controllers/article.go

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