Skip to content

Commit

Permalink
Fix DABBLE-ME-6R
Browse files Browse the repository at this point in the history
  • Loading branch information
parterburn committed Oct 5, 2024
1 parent 03286d1 commit 532c3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/lib/email_processor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ def clean_html_version(html)
html = html.split("<br>\n--").first # strip out gmail signature
html&.gsub!(/<style[^>]*>.*?<\/style>/mi, '') # remove styles
html&.gsub!(/<xml[^>]*>.*?<\/xml>/mi, '') # remove xml
html.gsub!(/<!--.*?-->/m, '') # remove comments
html.gsub!('<![endif]-->', '') # remove comments
html&.gsub!(/<!--.*?-->/m, '') # remove comments
html&.gsub!('<![endif]-->', '') # remove comments

html&.gsub!(/\A<br\s*\/?>/, "") # remove <br> from very beginning of html
html&.gsub!(/<div style="display:none;border:0px;width:0px;height:0px;overflow:hidden;">.+<\/div>/, "") # remove hidden divs / tracking pixels
Expand Down

0 comments on commit 532c3af

Please sign in to comment.