Remove Gmail signatures

pull/214/head
M66B 1 year ago
parent 11abe2ef8d
commit 7b1cd734d9

@ -2736,6 +2736,10 @@ public class HtmlHelper {
} }
static void removeSignatures(Document d) { static void removeSignatures(Document d) {
// <div data-smartmail="gmail_signature">
// <div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">
d.body().select("[data-smartmail=gmail_signature]").remove();
d.body().filter(new NodeFilter() { d.body().filter(new NodeFilter() {
private boolean remove = false; private boolean remove = false;
private boolean noremove = false; private boolean noremove = false;

Loading…
Cancel
Save