diff --git a/lib/gitlab/email/html_parser.rb b/lib/gitlab/email/html_parser.rb
index 598d5ce1a52fa9314fcf3da088d3fa71bda1fa45..a4ca62bfc411937e45afbf94c1342bc9a57f64c0 100644
--- a/lib/gitlab/email/html_parser.rb
+++ b/lib/gitlab/email/html_parser.rb
@@ -15,8 +15,8 @@ module Gitlab
       end
 
       def filter_replies!
-        document.xpath('//blockquote').each { |n| n.replace('> ') }
-        document.xpath('//table').each { |n| n.remove }
+        document.xpath('//blockquote').each(&:remove)
+        document.xpath('//table').each(&:remove)
       end
 
       def filtered_html