WebInstaller::docLink: Use Html::element to generate the link
authorFomafix <fomafix@googlemail.com>
Thu, 7 Jun 2018 09:34:00 +0000 (11:34 +0200)
committerFomafix <fomafix@googlemail.com>
Thu, 7 Jun 2018 09:34:37 +0000 (11:34 +0200)
Change-Id: I1e3163d9814345e6b108072886b9756cc84d168a

includes/installer/WebInstaller.php

index d754a37..e6ca337 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 );
        }
 
        /**