18 public function transform($attr, $config, $context) {
20 if (!isset($attr[
'href'])) {
25 $url = $this->parser->parse($attr[
'href']);
26 $scheme = $url->getSchemeObj($config, $context);
28 if ($scheme->browsable && !$url->isBenign($config, $context)) {
29 $attr[
'target'] =
'blank';