Scrubber: Allow quote-inline class in <p> tags used by Mastodon quotes

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk 2025-10-10 05:21:49 +02:00
commit 889938d76a
2 changed files with 3 additions and 0 deletions

View file

@ -0,0 +1 @@
Scrubber: Allow `quote-inline` class in <p> tags used by Mastodon quotes

View file

@ -83,6 +83,8 @@ defmodule Pleroma.HTML.Scrubber.Default do
"quote-inline"
])
Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"])
Meta.allow_tag_with_these_attributes(:span, ["lang"])
Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])