From: unarist Date: Wed, 7 Jun 2017 13:57:30 +0000 (+0900) Subject: Allow "class" attribute on the "a" tag in sanitization (#3623) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=6bd6dcf6df37dea077c4c6af84d979a49dd058db;p=mastodon.git Allow "class" attribute on the "a" tag in sanitization (#3623) This preserves `` from other Mastodon instances. --- diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index 22b46a3d3..9cf9b3db0 100644 --- a/app/lib/sanitize_config.rb +++ b/app/lib/sanitize_config.rb @@ -8,7 +8,7 @@ class Sanitize elements: %w(p br span a), attributes: { - 'a' => %w(href rel), + 'a' => %w(href rel class), 'span' => %w(class), },