diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-11-11 07:38:36 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-11-17 05:59:44 +0300 |
commit | 64e98040a77c05129fd49c01e1466f6027b8bc0e (patch) | |
tree | 8b3b2e508781428ce26117f22ec593a70bfc1c3f /lib/gitlab/email | |
parent | b49a33ff6ba6e1a52ba9af1182018a3a5a0dfdf3 (diff) |
completely remove blockquote and table tags
Diffstat (limited to 'lib/gitlab/email')
-rw-r--r-- | lib/gitlab/email/html_parser.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/email/html_parser.rb b/lib/gitlab/email/html_parser.rb index 598d5ce1a52..a4ca62bfc41 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 |