Search text instead of HTML

pull/164/head
M66B 5 years ago
parent 1772530ae6
commit 21488514ed

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

Loading…
Cancel
Save