Skip to content

Commit

Permalink
Added unicode support i.e. المستقبل is now highlightable.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonypartridge committed Jul 27, 2017
1 parent eb31e8a commit fb7128e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_search/views/search/view.html.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ public function display($tpl = null)
$created = JHtml::_('date', $result->created, JText::_('DATE_FORMAT_LC3'));
}

$result->title = preg_replace("/\b($needle)\b/i", $hl1 . "$1" . $hl2, htmlspecialchars($result->title, ENT_COMPAT, 'UTF-8'));
$result->title = preg_replace("/\b($needle)\b/ui", $hl1 . "$1" . $hl2, htmlspecialchars($result->title, ENT_COMPAT, 'UTF-8'));
$result->text = JHtml::_('content.prepare', $result->text, '', 'com_search.search');
$result->created = $created;
$result->count = $i + 1;
Expand Down

0 comments on commit fb7128e

Please sign in to comment.