Re-allow title attribute in <abbr> (#2254)

* Re-allow title attribute in <abbr>

This was accidentally removed in 7623e18124

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>

* Add test

Add a new test to check that title attribute on <abbr> is kept.

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>

---------

Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
Plastikmensch
2023-06-19 18:01:35 +02:00
committed by GitHub
parent 4ddb736d95
commit eba3411bfa
2 changed files with 5 additions and 0 deletions

View File

@ -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),