mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-23 04:02:07 +01: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:
parent
28d2920472
commit
6bd6dcf6df
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue