From 520ac6fdb9ab978dea5a6684190b64fd6676f4f6 Mon Sep 17 00:00:00 2001 From: Matteo Contrini Date: Mon, 23 Sep 2019 23:37:49 +0200 Subject: [PATCH] Change `rel` for external links to `nofollow ugc` (#1884) --- framework/core/src/Formatter/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Formatter/Formatter.php b/framework/core/src/Formatter/Formatter.php index 0ee53e4ae..b2a67c416 100644 --- a/framework/core/src/Formatter/Formatter.php +++ b/framework/core/src/Formatter/Formatter.php @@ -140,7 +140,7 @@ class Formatter foreach ($dom->getElementsByTagName('a') as $a) { $a->setAttribute('target', '_blank'); - $a->setAttribute('rel', 'nofollow'); + $a->setAttribute('rel', 'nofollow ugc'); } $dom->saveChanges();