From 5e63a9900170c1d5e3685a6dc6b89abf503eb6ac Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org> Date: Tue, 15 Sep 2015 13:52:44 +0100 Subject: [PATCH] Issue #2568611 by alexpott: Replace remaining !placeholder for Non-URL HTML outputs only in search_excerpt() --- core/modules/search/search.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/search/search.module b/core/modules/search/search.module index e2f951188d92..b38bb46705f7 100644 --- a/core/modules/search/search.module +++ b/core/modules/search/search.module @@ -776,7 +776,7 @@ function search_excerpt($keys, $text, $langcode = NULL) { // Combine the text chunks with "…" separators. The "…" needs to be // translated. Let translators have the … separator text as one chunk. - $ellipses = explode('!excerpt', t('… !excerpt … !excerpt …')); + $ellipses = explode('@excerpt', t('… @excerpt … @excerpt …')); $text = (isset($new_ranges[0]) ? '' : $ellipses[0]) . implode($ellipses[1], $out) . (($max_end < strlen($text) - 1) ? $ellipses[2] : ''); $text = Html::escape($text); -- GitLab