diff --git a/lib/sanitize_ext/sanitize_config.rb b/lib/sanitize_ext/sanitize_config.rb
index 0ee3a519b6..f3eb9c0754 100644
--- a/lib/sanitize_ext/sanitize_config.rb
+++ b/lib/sanitize_ext/sanitize_config.rb
@@ -74,6 +74,7 @@ class Sanitize
attributes: {
'a' => %w(href rel class title),
+ 'abbr' => %w(title),
'span' => %w(class),
'blockquote' => %w(cite),
'ol' => %w(start reversed),
diff --git a/spec/lib/sanitize_config_spec.rb b/spec/lib/sanitize_config_spec.rb
index 29344476f6..586a43d594 100644
--- a/spec/lib/sanitize_config_spec.rb
+++ b/spec/lib/sanitize_config_spec.rb
@@ -43,6 +43,10 @@ describe Sanitize::Config do
it 'keeps a with supported scheme and no host' do
expect(Sanitize.fragment('Test', subject)).to eq 'Test'
end
+
+ it 'keeps title in abbr' do
+ expect(Sanitize.fragment('HTML', subject)).to eq 'HTML'
+ end
end
describe '::MASTODON_OUTGOING' do