diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php index aca698c..bab5cc9 100644 --- a/core/modules/node/src/Plugin/Search/NodeSearch.php +++ b/core/modules/node/src/Plugin/Search/NodeSearch.php @@ -332,7 +332,7 @@ protected function prepareResults(StatementInterface $found) { unset($build['#theme']); $build['#pre_render'][] = array($this, 'removeSubmittedInfo'); - // Fetch comment count for snippet. + // Fetch comments for snippet. $rendered = $this->renderer->renderPlain($build); $rendered .= ' ' . $this->moduleHandler->invoke('comment', 'node_update_index', array($node, $item->langcode)); diff --git a/core/modules/search/search.module b/core/modules/search/search.module index 25d52b5..e7ee180 100644 --- a/core/modules/search/search.module +++ b/core/modules/search/search.module @@ -618,7 +618,8 @@ function search_mark_for_reindex($type = NULL, $sid = NULL, $langcode = NULL) { /** * Returns snippets from a piece of text, with search keywords highlighted. * - * Used for formatting search results. + * Used for formatting search results. All HTML tags will be stripped from + * $text. * * @param string $keys * A string containing a search query.