Skip to content

Commit 1b9a0a4

Browse files
committed
Remove empty policy.AllowAttrs
1 parent 97b1a46 commit 1b9a0a4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

modules/markup/sanitizer.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ func createDefaultPolicy() *bluemonday.Policy {
133133
policy.AllowAttrs("class").Matching(regexp.MustCompile("^lines-escape$")).OnElements("td")
134134
policy.AllowAttrs("class").Matching(regexp.MustCompile("^toggle-escape-button btn interact-bg$")).OnElements("button")
135135
policy.AllowAttrs("title").OnElements("button")
136-
policy.AllowAttrs()
137136
policy.AllowAttrs("class").Matching(regexp.MustCompile("^ambiguous-code-point$")).OnElements("span")
138137
policy.AllowAttrs("data-tooltip-content").OnElements("span")
139138
policy.AllowAttrs("class").Matching(regexp.MustCompile("muted|(text black)")).OnElements("a")

0 commit comments

Comments
 (0)