We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd5462b commit a23e600Copy full SHA for a23e600
1 file changed
server/sanitizer/sanitizer.go
@@ -77,9 +77,11 @@ func init() {
77
).Globally()
78
p.AllowAttrs("href").OnElements("a")
79
p.AllowAttrs("src", "srcset").OnElements("img", "source")
80
- p.AllowAttrs("alt").Globally()
81
- p.AllowAttrs("title").Globally()
82
- p.AllowAttrs("id").Globally()
+ p.AllowAttrs(
+ "alt",
+ "title",
83
+ "id",
84
+ ).Globally()
85
p.RequireParseableURLs(true)
86
p.AllowDataURIImages()
87
p.AllowImages()
0 commit comments