30 if (!isset($attr[
'href'])) {
35 $url = $this->parser->parse($attr[
'href']);
36 $scheme = $url->getSchemeObj($config, $context);
38 if ($scheme->browsable && !$url->isBenign($config, $context)) {
39 $attr[
'target'] =
'_blank';
Parses a URI into the components and fragment identifier as specified by RFC 3986.