Commit 686e1da3 authored by alexpott's avatar alexpott

Issue #2279623 by thedavidmeister: Fixed search_excerpt() should use unicode...

Issue #2279623 by thedavidmeister: Fixed search_excerpt() should use unicode ellipsis characters instead of "...".
parent 2983bfe2
......@@ -712,10 +712,10 @@ function search_excerpt($keys, $text, $langcode = NULL) {
$out[] = substr($text, $from, $to - $from);
}
// Combine the text chunks with "..." separators. The "..." needs to be
// translated. Let translators have the ... separator text as one chunk.
$dots = explode('!excerpt', t('... !excerpt ... !excerpt ...'));
$text = (isset($new_ranges[0]) ? '' : $dots[0]) . implode($dots[1], $out) . (($max_end < strlen($text) - 1) ? $dots[2] : '');
// 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 …'));
$text = (isset($new_ranges[0]) ? '' : $ellipses[0]) . implode($ellipses[1], $out) . (($max_end < strlen($text) - 1) ? $ellipses[2] : '');
$text = check_plain($text);
// Highlight keywords. Must be done at once to prevent conflicts ('strong'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment