From 83afef0e475785d650a07544a2dcbcc9008adabd Mon Sep 17 00:00:00 2001 From: Fomafix Date: Thu, 7 Jun 2018 11:34:00 +0200 Subject: [PATCH] WebInstaller::docLink: Use Html::element to generate the link Change-Id: I1e3163d9814345e6b108072886b9756cc84d168a --- includes/installer/WebInstaller.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/installer/WebInstaller.php b/includes/installer/WebInstaller.php index d754a37f27..e6ca33767f 100644 --- a/includes/installer/WebInstaller.php +++ b/includes/installer/WebInstaller.php @@ -1142,9 +1142,7 @@ class WebInstaller extends Installer { public function docLink( $linkText, $attribs, $parser ) { $url = $this->getDocUrl( $attribs['href'] ); - return '' . - htmlspecialchars( $linkText ) . - ''; + return Html::element( 'a', [ 'href' => $url ], $linkText ); } /** -- 2.20.1