From 09609a9f20e64ef0383d9b6754df54874dcf1b5e 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) --- src/Formatter/Formatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Formatter/Formatter.php b/src/Formatter/Formatter.php index 0ee53e4ae..b2a67c416 100644 --- a/src/Formatter/Formatter.php +++ b/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();