29 if (!isset($attr[
'href'])) {
34 $url = $this->parser->parse($attr[
'href']);
38 if (isset($attr[
'rel'])) {
39 $rels = explode(
' ', $attr[
'rel']);
40 if (!in_array(
'nofollow', $rels)) {
43 $attr[
'rel'] = implode(
' ', $rels);
45 $attr[
'rel'] =
'nofollow';
Parses a URI into the components and fragment identifier as specified by RFC 3986.