Allow aria-label and aria-hidden tags on pre tags
Some checks are pending
ci/woodpecker/pr/woodpecker Pipeline is pending

This commit is contained in:
Sol Fisher Romanoff 2022-12-07 19:07:39 +02:00
parent db60640c5b
commit 619920ff8c
No known key found for this signature in database
GPG key ID: 9D3F2B64F2341B62

View file

@ -44,7 +44,7 @@ defmodule Pleroma.HTML.Scrubber.Default do
Meta.allow_tag_with_these_attributes(:li, [])
Meta.allow_tag_with_these_attributes(:ol, [])
Meta.allow_tag_with_these_attributes(:p, [])
Meta.allow_tag_with_these_attributes(:pre, [])
Meta.allow_tag_with_these_attributes(:pre, ["aria-hidden", "aria-label"])
Meta.allow_tag_with_these_attributes(:strong, [])
Meta.allow_tag_with_these_attributes(:sub, [])
Meta.allow_tag_with_these_attributes(:sup, [])