This website works better with JavaScript.
Home
Explore
Help
Sign In
jyt94
/
closedSocialMastodon
forked from
closed-social/mastodon
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
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-v3
unarist
7 years ago
committed by
Eugen Rochko
parent
28d2920472
commit
6bd6dcf6df
1 changed files
with
1 additions
and
1 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
)
,
elements
:
%w(
p br span a
)
,
attributes
:
{
attributes
:
{
'a'
=
>
%w(
href rel
)
,
'a'
=
>
%w(
href rel
class
)
,
'span'
=
>
%w(
class
)
,
'span'
=
>
%w(
class
)
,
}
,
}
,
Write
Preview
Loading…
Cancel
Save