Hi, i had enabled the use of rel="nofollow" but it inserts noopener and noreferrer
sample use
$text = 'test';
$config = \HTMLPurifier_Config::createDefault();
$config->set('Attr.AllowedFrameTargets', array('_blank'));
$config->set('Attr.AllowedRel', array('nofollow'));
$purifier = new \HTMLPurifier($config);
$text = $purifier->purify($text);
Hi, i had enabled the use of rel="nofollow" but it inserts noopener and noreferrer sample use $text = 'test'; $config = \HTMLPurifier_Config::createDefault(); $config->set('Attr.AllowedFrameTargets', array('_blank')); $config->set('Attr.AllowedRel', array('nofollow')); $purifier = new \HTMLPurifier($config); $text = $purifier->purify($text);
returns test
thanks