mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-24 23:12:55 +00:00
Refactoring
This commit is contained in:
parent
c37cd879f8
commit
c1f97ca0f8
1 changed files with 3 additions and 1 deletions
|
@ -354,7 +354,9 @@ public class EntityRule {
|
||||||
if (html == null)
|
if (html == null)
|
||||||
throw new IllegalArgumentException(context.getString(R.string.title_rule_no_body));
|
throw new IllegalArgumentException(context.getString(R.string.title_rule_no_body));
|
||||||
|
|
||||||
String text = HtmlHelper.getFullText(html);
|
Document d = JsoupEx.parse(html);
|
||||||
|
//d.select("blockquote").remove();
|
||||||
|
String text = d.body().text();
|
||||||
if (!matches(context, message, value, text, regex))
|
if (!matches(context, message, value, text, regex))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue