From 619920ff8cf0896d075d94aec4faf8b3439695e2 Mon Sep 17 00:00:00 2001 From: Sol Fisher Romanoff Date: Wed, 7 Dec 2022 19:07:39 +0200 Subject: [PATCH] Allow aria-label and aria-hidden tags on pre tags --- priv/scrubbers/default.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index 771f27ac1..8e37ae821 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -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, []) -- 2.34.1