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

This preserves `<a ... class="u-url mention">` from other Mastodon instances.
lolsob-rspec
unarist 2017-06-07 22:57:30 +09:00 committed by Eugen Rochko
parent 13340bdc7a
commit eebfad1ac8
1 changed files with 1 additions and 1 deletions

View File

@ -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),
},