Improve conversion of search snippets to html in overboard.php.

This commit is contained in:
Retro_Guy 2024-06-26 00:05:49 -07:00
parent 8f4c7c9978
commit 804dee4e46
1 changed files with 4 additions and 2 deletions

View File

@ -415,7 +415,8 @@ function display_threads($threads, $oldest)
if (file_exists($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) {
unset($this_overboard['threads'][$target['date']]);
@ -547,7 +548,8 @@ function display_flat($threads, $oldest)
if (file_exists($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 ++;