commit: 3be0d206bdb1b182002b9f3b2ab9cda5d2ffe89d
parent d1d7dd18277985fbfb3df25c9f49630bb5537321
Author: nicole mikołajczyk <git@mkljczk.pl>
Date: Sun, 7 Sep 2025 22:52:11 +0200
Allow "invisible" and "ellipsis" classes for span tags to match Mastodon behavior
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
Diffstat:
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/changelog.d/scrubber-span-classes.change 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
@@ -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"])