Skip to content

Commit 4047619

Browse files
committed
remove unnecessary sanitizer change
1 parent 7ee652d commit 4047619

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

modules/markup/sanitizer.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ func createDefaultPolicy() *bluemonday.Policy {
102102
// Allow 'style' attribute on text elements.
103103
policy.AllowAttrs("style").OnElements("span", "p")
104104

105-
// Allow 'dir' attribute on elements that may contain rtl content.
106-
policy.AllowAttrs("dir").OnElements("span", "div", "p", "ul", "ol", "h1", "h2", "h3", "h4", "h5", "h6")
107-
108105
// Allow 'color' and 'background-color' properties for the style attribute on text elements.
109106
policy.AllowStyles("color", "background-color").OnElements("span", "p")
110107

0 commit comments

Comments
 (0)