- $revlink = Linker::link( $title, htmlspecialchars( $revId ), [], $query );
- $pagelink = Linker::link( $title, htmlspecialchars( $title->getPrefixedText() ) );
+ $revlink = $linkRenderer->makeLink( $title, $revId, [], $query );
+ $pagelink = $linkRenderer->makeLink( $title, $title->getPrefixedText() );