mirror of
https://github.com/flarum/framework.git
synced 2025-04-25 22:24:04 +08:00
Change rel
for external links to nofollow ugc
(#1884)
This commit is contained in:
parent
fb0a875c6d
commit
09609a9f20
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user