From c337487111095785147d4d99d635cecc4dfc8887 Mon Sep 17 00:00:00 2001 From: Artemis Tosini Date: Fri, 22 May 2026 08:43:16 +0000 Subject: [PATCH] Allow HTML `lang` attribute in remote posts (#39114) --- lib/sanitize_ext/sanitize_config.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sanitize_ext/sanitize_config.rb b/lib/sanitize_ext/sanitize_config.rb index ab166f52a8..f30eec476c 100644 --- a/lib/sanitize_ext/sanitize_config.rb +++ b/lib/sanitize_ext/sanitize_config.rb @@ -107,6 +107,7 @@ class Sanitize elements: %w(p br span a del s pre blockquote code b strong u i em ul ol li ruby rt rp), attributes: { + :all => %w(lang), 'a' => %w(href rel class translate), 'span' => %w(class translate), 'ol' => %w(start reversed),