Browse Source

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

This preserves `<a ... class="u-url mention">` from other Mastodon instances.
closed-social-glitch-2
unarist 6 years ago
committed by Eugen Rochko
parent
commit
6bd6dcf6df
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/lib/sanitize_config.rb

+ 1
- 1
app/lib/sanitize_config.rb 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),
},

Loading…
Cancel
Save