commit: de022de4ce37e2fe4ad638dfddc5e6953fd76790
parent d9baa0980d8dabe1faf64c388acb26452cca09e9
Author: HJ <30-hj@users.noreply.git.pleroma.social>
Date: Tue, 16 Dec 2025 16:56:11 +0000
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
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_this_attribute_values(:p, "class", ["quote-inline"])