diff --git a/changelog.d/scrubber-inline-quotes-mastodon.add b/changelog.d/scrubber-inline-quotes-mastodon.add new file mode 100644 index 000000000..a8006e423 --- /dev/null +++ b/changelog.d/scrubber-inline-quotes-mastodon.add @@ -0,0 +1 @@ +Scrubber: Allow `quote-inline` class in

tags used by Mastodon quotes \ No newline at end of file diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index dad9dc1a1..ab82663be 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -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"])