Merge "WebInstaller::docLink: Use Html::element to generate the link"
[lhc/web/wiklou.git] / includes / installer / WebInstaller.php
index 9dc54a2..018754b 100644 (file)
@@ -1142,9 +1142,7 @@ class WebInstaller extends Installer {
        public function docLink( $linkText, $attribs, $parser ) {
                $url = $this->getDocUrl( $attribs['href'] );
 
-               return '<a href="' . htmlspecialchars( $url ) . '">' .
-                       htmlspecialchars( $linkText ) .
-                       '</a>';
+               return Html::element( 'a', [ 'href' => $url ], $linkText );
        }
 
        /**