renjiaojiao 2 жил өмнө
parent
commit
7e572c930e

+ 1 - 0
api/messagecenter/internal/logic/messageaddlogic.go

@@ -34,6 +34,7 @@ var (
 func init() {
 func init() {
 	htmlFilter.AllowStandardURLs()
 	htmlFilter.AllowStandardURLs()
 	htmlFilter.AllowAttrs("href").OnElements("a")
 	htmlFilter.AllowAttrs("href").OnElements("a")
+	htmlFilter.AllowAttrs("class").OnElements("li")
 	htmlFilter.AllowAttrs("src").OnElements("img")
 	htmlFilter.AllowAttrs("src").OnElements("img")
 }
 }