From 03e956132d4a4b880d4e4533aeab725b0b2b5b52 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 21 Oct 2023 10:51:24 +0300 Subject: switch to html2text() instead of strip_tags() when preparing FTS index --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update.php') diff --git a/update.php b/update.php index 5e31c805b..4fd517701 100755 --- a/update.php +++ b/update.php @@ -317,7 +317,7 @@ while (true) { foreach ($entries as $entry) { - $tsvector_combined = mb_substr(strip_tags($entry->title . " " . $entry->content), 0, 1000000); + $tsvector_combined = mb_substr(strip_tags($entry->title) . " " . \Soundasleep\Html2Text::convert($entry->content), 0, 900000); $usth->execute([$tsvector_combined, $entry->id]); $processed++; } -- cgit v1.2.3-54-g00ecf