Skip to content

Commit a23e600

Browse files
committed
[mod] merge rules
1 parent bd5462b commit a23e600

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

server/sanitizer/sanitizer.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,11 @@ func init() {
7777
).Globally()
7878
p.AllowAttrs("href").OnElements("a")
7979
p.AllowAttrs("src", "srcset").OnElements("img", "source")
80-
p.AllowAttrs("alt").Globally()
81-
p.AllowAttrs("title").Globally()
82-
p.AllowAttrs("id").Globally()
80+
p.AllowAttrs(
81+
"alt",
82+
"title",
83+
"id",
84+
).Globally()
8385
p.RequireParseableURLs(true)
8486
p.AllowDataURIImages()
8587
p.AllowImages()

0 commit comments

Comments
 (0)