Differentiate between formatted and preview text

This commit is contained in:
M66B
2020-02-11 19:37:26 +01:00
parent ffebe78922
commit fe35cc0c1e
4 changed files with 7 additions and 3 deletions

View File

@@ -252,7 +252,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
if (file.exists()) {
String html = Helper.readText(file);
if (html.toLowerCase(Locale.ROOT).contains(find)) {
String text = HtmlHelper.getText(html);
String text = HtmlHelper.getPreviewText(html);
if (text.toLowerCase(Locale.ROOT).contains(find))
match.matched = true;
}