support rel=noopener for links
This commit is contained in:
parent
e934d63e0c
commit
3b001e4330
|
@ -900,7 +900,7 @@
|
||||||
$entry->setAttribute('href',
|
$entry->setAttribute('href',
|
||||||
rewrite_relative_url($site_url, $entry->getAttribute('href')));
|
rewrite_relative_url($site_url, $entry->getAttribute('href')));
|
||||||
|
|
||||||
$entry->setAttribute('rel', 'noreferrer');
|
$entry->setAttribute('rel', 'noopener noreferrer');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($entry->hasAttribute('src')) {
|
if ($entry->hasAttribute('src')) {
|
||||||
|
|
Loading…
Reference in New Issue