mirror of
https://github.com/flarum/framework.git
synced 2025-05-02 17:44:03 +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) {
|
foreach ($dom->getElementsByTagName('a') as $a) {
|
||||||
$a->setAttribute('target', '_blank');
|
$a->setAttribute('target', '_blank');
|
||||||
$a->setAttribute('rel', 'nofollow');
|
$a->setAttribute('rel', 'nofollow ugc');
|
||||||
}
|
}
|
||||||
|
|
||||||
$dom->saveChanges();
|
$dom->saveChanges();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user