31 $title = $result->getTitle();
32 $titleSnippet = $result->getTitleSnippet();
33 if ( $titleSnippet ) {
34 $titleSnippet =
new HtmlArmor( $titleSnippet );
39 $link = $this->linkRenderer->makeLink( $title, $titleSnippet );
41 $redirectTitle = $result->getRedirectTitle();
43 if ( $redirectTitle !==
null ) {
44 $redirectText = $result->getRedirectSnippet();
45 if ( $redirectText ) {
46 $redirectText =
new HtmlArmor( $redirectText );
51 "<span class='searchalttitle'>" .
52 $this->specialSearch->msg(
'search-redirect' )->rawParams(
53 $this->linkRenderer->makeLink( $redirectTitle, $redirectText )
58 return "<li>{$link} {$redirect}</li>";