mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
cleanup after our cto
This commit is contained in:
parent
b181563aba
commit
66f0c08ec8
1 changed files with 2 additions and 4 deletions
|
@ -182,10 +182,8 @@ class View
|
||||||
$dom = new PHPHtmlParser\Dom();
|
$dom = new PHPHtmlParser\Dom();
|
||||||
$dom->load($html, ['cleanupInput' => false, 'removeDoubleSpace' => false, 'removeSmartyScripts' => false]);
|
$dom->load($html, ['cleanupInput' => false, 'removeDoubleSpace' => false, 'removeSmartyScripts' => false]);
|
||||||
|
|
||||||
foreach ($dom->find('body a') as $link)
|
foreach ($dom->find('body a') as $link) {
|
||||||
{
|
if ($link->getAttribute('href') && static::isLinkExternal($link->getAttribute('href'), $domain)) {
|
||||||
if (static::isLinkExternal($link->getAttribute('href'), $domain))
|
|
||||||
{
|
|
||||||
$link->setAttribute('rel', "noopener noreferrer");
|
$link->setAttribute('rel', "noopener noreferrer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue