Explorar el Código

文章详情样式修改

xingzai hace 3 años
padre
commit
45b1ef9e87
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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 == "" {