diff --git a/changelog.d/scrubber-span-classes.change b/changelog.d/scrubber-span-classes.change new file mode 100644 index 000000000..4ba5dfa91 --- /dev/null +++ b/changelog.d/scrubber-span-classes.change @@ -0,0 +1 @@ +Allow "invisible" and "ellipsis" classes for span tags to match Mastodon behavior diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index dad9dc1a1..def92ae66 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -80,7 +80,9 @@ defmodule Pleroma.HTML.Scrubber.Default do Meta.allow_tag_with_this_attribute_values(:span, "class", [ "h-card", "recipients-inline", - "quote-inline" + "quote-inline", + "invisible", + "ellipsis" ]) Meta.allow_tag_with_these_attributes(:span, ["lang"])