Explorar el Código

过滤调li class标签

renjiaojiao hace 2 años
padre
commit
7e572c930e
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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")
 }