Merge branch 'scrubber-span-classes' into 'develop'
Allow "invisible" and "ellipsis" classes for span tags to match Mastodon behavior See merge request pleroma/pleroma!4357
This commit is contained in:
commit
de022de4ce
2 changed files with 4 additions and 1 deletions
1
changelog.d/scrubber-span-classes.change
Normal file
1
changelog.d/scrubber-span-classes.change
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
Allow "invisible" and "ellipsis" classes for span tags to match Mastodon behavior
|
||||||
|
|
@ -80,7 +80,9 @@ defmodule Pleroma.HTML.Scrubber.Default do
|
||||||
Meta.allow_tag_with_this_attribute_values(:span, "class", [
|
Meta.allow_tag_with_this_attribute_values(:span, "class", [
|
||||||
"h-card",
|
"h-card",
|
||||||
"recipients-inline",
|
"recipients-inline",
|
||||||
"quote-inline"
|
"quote-inline",
|
||||||
|
"invisible",
|
||||||
|
"ellipsis"
|
||||||
])
|
])
|
||||||
|
|
||||||
Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"])
|
Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue