From: Fomafix Date: Thu, 7 Jun 2018 09:34:00 +0000 (+0200) Subject: WebInstaller::docLink: Use Html::element to generate the link X-Git-Tag: 1.34.0-rc.0~5124^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/supprimer.php?a=commitdiff_plain;h=83afef0e475785d650a07544a2dcbcc9008adabd;p=lhc%2Fweb%2Fwiklou.git WebInstaller::docLink: Use Html::element to generate the link Change-Id: I1e3163d9814345e6b108072886b9756cc84d168a --- 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 ); } /**