diff --git a/lib/sanitize_ext/sanitize_config.rb b/lib/sanitize_ext/sanitize_config.rb
index 0ee3a519b..f3eb9c075 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 29344476f..586a43d59 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