1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

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

This preserves `<a ... class="u-url mention">` from other Mastodon instances.
This commit is contained in:
unarist 2017-06-07 22:57:30 +09:00 committed by Eugen Rochko
parent 28d2920472
commit 6bd6dcf6df

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