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