* @return string The HTML.
*/
protected function makeHeader( $header, $canonicalId ) {
* @return string The HTML.
*/
protected function makeHeader( $header, $canonicalId ) {
- $spanAttribs = [ 'class' => 'mw-headline', 'id' => Sanitizer::escapeId( $header ) ];
- $h2Attribs = [ 'id' => Sanitizer::escapeId( $canonicalId ) ];
+ $spanAttribs = [ 'class' => 'mw-headline', 'id' => Sanitizer::escapeIdForAttribute( $header ) ];
+ $h2Attribs = [ 'id' => Sanitizer::escapeIdForAttribute( $canonicalId ) ];
return Html::rawElement( 'h2', $h2Attribs, Html::element( 'span', $spanAttribs, $header ) );
}
return Html::rawElement( 'h2', $h2Attribs, Html::element( 'span', $spanAttribs, $header ) );
}
$linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
# Sift for real versus user names
$linkRenderer = MediaWikiServices::getInstance()->getLinkRenderer();
# Sift for real versus user names
foreach ( $contributors as $user ) {
$page = $user->isAnon()
? SpecialPage::getTitleFor( 'Contributions', $user->getName() )
foreach ( $contributors as $user ) {
$page = $user->isAnon()
? SpecialPage::getTitleFor( 'Contributions', $user->getName() )