value; if ($value == '') { return; } $attributes = ''; if (!JUri::isInternal($value)) { $attributes = ' rel="nofollow noopener noreferrer" target="_blank"'; } echo sprintf('%s', htmlspecialchars($value), $attributes, htmlspecialchars($value) );