Fix exception when new-lines on stripped html was not making some matches work
This commit is contained in:
parent
197a4273e8
commit
a50f14472f
2
base.php
2
base.php
|
@ -403,7 +403,7 @@ function normalize_word_sound($word, $cback=null) {
|
|||
|
||||
function normalize_for_search($str) {
|
||||
if (trim($str) === '') return '';
|
||||
$str = strip_tags(trim($str));
|
||||
$str = trim(strip_tags(str_replace('>', '> ', $str)));
|
||||
$str = strtolower(remove_accents($str));
|
||||
$str = preg_replace('/[^a-z0-9]+/', ' ', $str);
|
||||
$str = preg_replace('/\s+/', ' ', $str);
|
||||
|
|
Loading…
Reference in New Issue