Merge branch 'scrubber-inline-quotes-mastodon' into 'develop'

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

See merge request pleroma/pleroma!4373
This commit is contained in:
nicole mikołajczyk 2025-11-29 17:27:01 +01:00
commit e74b6ed348
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"])