getUrl(); // empty urls, anchors and absolute urls // should not go through the url resolver if (!DauxHelper::isValidUrl($url) || DauxHelper::isExternalUrl($url)) { return $element; } //Internal links $file = DauxHelper::resolveInternalFile($this->daux, $url); $link_props = [ 'ri:content-title' => trim(trim($this->daux['confluence']['prefix']) . ' ' . $file->getTitle()), 'ri:space-key' => $this->daux['confluence']['space_id'], ]; $page = strval(new HtmlElement('ri:page', $link_props, '', true)); $children = $htmlRenderer->renderInlines($inline->children()); if (strpos($children, '<') !== false) { $children = '' . $children . ''; } else { $children = ''; } return new HtmlElement('ac:link', [], $page . $children); } }