Skip to content
Snippets Groups Projects
Commit 6bd6dcf6 authored by unarist's avatar unarist Committed by Eugen Rochko
Browse files

Allow "class" attribute on the "a" tag in sanitization (#3623)

This preserves `<a ... class="u-url mention">` from other Mastodon instances.
parent 28d29204
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ class Sanitize
elements: %w(p br span a),
attributes: {
'a' => %w(href rel),
'a' => %w(href rel class),
'span' => %w(class),
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment