diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index 7515cb5f..6cf4275e 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -331,6 +331,8 @@ def clean_html_version(html) html = Rinku.auto_link(html, :all, 'target="_blank"') html = ActionController::Base.helpers.sanitize(html, tags: %w(strong em a div span ul ol li b i br p hr u em blockquote), attributes: %w(href target)) html = html.split("
--
").first # strip out gmail signature + html = html.split("

--
").first # strip out gmail signature + html = html.split("
--").first # strip out gmail signature html&.gsub!(/
.+<\/div>/, "") # remove hidden divs / tracking pixels html&.gsub!(/src=\"cid\:\S+\"/, "src=\"\" style=\"display: none;\"") # remove attached images showing as broken inline images