From 532c3af0b23ad3f4db40f0de0729dbe09f43da48 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Sat, 5 Oct 2024 16:28:43 -0600 Subject: [PATCH] Fix DABBLE-ME-6R --- app/lib/email_processor.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index ab7bc055..0a9286da 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -365,8 +365,8 @@ def clean_html_version(html) html = html.split("
\n--").first # strip out gmail signature html&.gsub!(/]*>.*?<\/style>/mi, '') # remove styles html&.gsub!(/]*>.*?<\/xml>/mi, '') # remove xml - html.gsub!(//m, '') # remove comments - html.gsub!('', '') # remove comments + html&.gsub!(//m, '') # remove comments + html&.gsub!('', '') # remove comments html&.gsub!(/\A/, "") # remove
from very beginning of html html&.gsub!(/
.+<\/div>/, "") # remove hidden divs / tracking pixels