mirror of
https://github.com/flarum/core.git
synced 2025-07-22 17:21:27 +02:00
Change rel
for external links to nofollow ugc
(#1884)
This commit is contained in:
committed by
Franz Liedke
parent
2bb81ba03f
commit
520ac6fdb9
@@ -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();
|
||||
|
Reference in New Issue
Block a user