Improve conversion of search snippets to html in overboard.php.
This commit is contained in:
parent
8f4c7c9978
commit
804dee4e46
|
@ -415,7 +415,8 @@ function display_threads($threads, $oldest)
|
||||||
if (file_exists($config_dir . '/rewrite_body.inc.php')) {
|
if (file_exists($config_dir . '/rewrite_body.inc.php')) {
|
||||||
include ($config_dir . '/rewrite_body.inc.php');
|
include ($config_dir . '/rewrite_body.inc.php');
|
||||||
}
|
}
|
||||||
$display .= strip_tags(htmlentities(substr($text, 0, $snippetlength)));
|
$display .= strip_tags(html_parse(text2html(substr($text, 0, $snippetlength))));
|
||||||
|
// $display .= strip_tags(htmlentities(substr($text, 0, $snippetlength)));
|
||||||
}
|
}
|
||||||
if ($target['date'] < $expireme) {
|
if ($target['date'] < $expireme) {
|
||||||
unset($this_overboard['threads'][$target['date']]);
|
unset($this_overboard['threads'][$target['date']]);
|
||||||
|
@ -547,7 +548,8 @@ function display_flat($threads, $oldest)
|
||||||
if (file_exists($config_dir . '/rewrite_body.inc.php')) {
|
if (file_exists($config_dir . '/rewrite_body.inc.php')) {
|
||||||
include ($config_dir . '/rewrite_body.inc.php');
|
include ($config_dir . '/rewrite_body.inc.php');
|
||||||
}
|
}
|
||||||
$display .= htmlentities(substr($text, 0, $snippetlength));
|
$display .= strip_tags(html_parse(text2html(substr($text, 0, $snippetlength))));
|
||||||
|
//$display .= htmlentities(substr($text, 0, $snippetlength));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$results ++;
|
$results ++;
|
||||||
|
|
Loading…
Reference in New Issue