diff options
author | Andrew Dolgov <[email protected]> | 2023-10-21 10:51:24 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-21 10:51:24 +0300 |
commit | 03e956132d4a4b880d4e4533aeab725b0b2b5b52 (patch) | |
tree | ce23379887ece400212767f527afcba8366f018a /update.php | |
parent | 2b61052e8709283d89997e351173bcb43a3c2c61 (diff) |
switch to html2text() instead of strip_tags() when preparing FTS index
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |