From 3be0d206bdb1b182002b9f3b2ab9cda5d2ffe89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Sun, 7 Sep 2025 22:52:11 +0200 Subject: [PATCH] Allow "invisible" and "ellipsis" classes for span tags to match Mastodon behavior MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- changelog.d/scrubber-span-classes.change | 1 + priv/scrubbers/default.ex | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelog.d/scrubber-span-classes.change 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"])