You are here

public function Result::getSnippet in Google Search Appliance 8

Gets value of snippet.

Return value

string Value of snippet

File

src/SearchResults/Result.php, line 166

Class

Result
Defines a value object representing a search result.

Namespace

Drupal\google_appliance\SearchResults

Code

public function getSnippet() {
  return Markup::create(Xss::filter($this->snippet, [
    'b',
    'i',
  ]));
}