diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index 7cf1c30626b..90098969fac 100644 --- a/app/lib/sanitize_config.rb +++ b/app/lib/sanitize_config.rb @@ -12,6 +12,13 @@ class Sanitize 'span' => %w(class), }, + add_attributes: { + 'a' => { + 'rel' => 'nofollow noopener', + 'target' => '_blank', + }, + }, + protocols: { 'a' => { 'href' => HTTP_PROTOCOLS }, }