Browse Source

过滤调li class标签

renjiaojiao 2 years ago
parent
commit
7e572c930e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      api/messagecenter/internal/logic/messageaddlogic.go

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

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