diff --git a/src/Core/Formatter/Formatter.php b/src/Core/Formatter/Formatter.php index 6ad6798fd..ba0b5e2c7 100644 --- a/src/Core/Formatter/Formatter.php +++ b/src/Core/Formatter/Formatter.php @@ -42,6 +42,15 @@ class Formatter event(new FormatterConfigurator($configurator)); + $dom = $configurator->tags['URL']->template->asDOM(); + + foreach ($dom->getElementsByTagName('a') as $a) { + $a->setAttribute('target', '_blank'); + $a->setAttribute('rel', 'nofollow'); + } + + $dom->saveChanges(); + return $configurator; }