Search text instead of HTML

This commit is contained in:
M66B 2019-10-23 20:28:22 +02:00
parent 1772530ae6
commit 21488514ed
1 changed files with 3 additions and 2 deletions

View File

@ -202,8 +202,9 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
try {
File file = EntityMessage.getFile(context, match.id);
if (file.exists()) {
String body = Helper.readText(file);
if (body.toLowerCase(Locale.ROOT).contains(find))
String html = Helper.readText(file);
String text = HtmlHelper.getText(html);
if (text.toLowerCase(Locale.ROOT).contains(find))
match.matched = true;
}
} catch (IOException ex) {