From f871ab45e8f3ed3d28d3f44c019505d7995c5ed8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Fri, 31 Dec 2021 22:23:45 +0100 Subject: [PATCH] Allow `rel` in sanitized links --- config/initializers/sanitize.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/sanitize.rb b/config/initializers/sanitize.rb index 267b593a..fc508196 100644 --- a/config/initializers/sanitize.rb +++ b/config/initializers/sanitize.rb @@ -1,7 +1,7 @@ EVIL_TAGS = { elements: %w(blockquote a p i strong em del pre code table tr td th br ul ol li hr), attributes: { - 'a' => %w(href target) + 'a' => %w(href target rel) }, protocols: { 'a' => { 'href' => ['http', 'https', :relative] }