Use invisible text for preview text

Like Gmail, Outlook and Apple do
This commit is contained in:
M66B
2024-05-09 17:58:33 +02:00
parent bfa347aa71
commit 12e79ce7e9
13 changed files with 26 additions and 26 deletions

View File

@@ -885,7 +885,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
if (criteria.in_message) {
// This won't match <p>An <b>example</b><p> when searching for "An example"
if (contains(html, criteria.query, partial, true)) {
String text = HtmlHelper.getFullText(html);
String text = HtmlHelper.getFullText(html, false);
if (contains(text, criteria.query, partial, false))
return true;
}