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

This preserves `<a ... class="u-url mention">` from other Mastodon instances.
th-downstream
unarist 8 years ago committed by Eugen Rochko
parent 13340bdc7a
commit eebfad1ac8

@ -8,7 +8,7 @@ class Sanitize
elements: %w(p br span a), elements: %w(p br span a),
attributes: { attributes: {
'a' => %w(href rel), 'a' => %w(href rel class),
'span' => %w(class), 'span' => %w(class),
}, },

Loading…
Cancel
Save