Browse Source

核心观点解析样式优化

xingzai 2 years ago
parent
commit
c2e33072d9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      services/article.go

+ 1 - 0
services/article.go

@@ -1821,6 +1821,7 @@ func ArticleAnnotation(item *models.HomeArticle) (annotation string) {
 	}
 	if item.Annotation != "" {
 		annotation = strings.Replace(item.Annotation, "<br>", "", -1)
+		annotation = strings.Replace(item.Annotation, "&nbsp;", "", -1)
 	} else {
 		return
 	}