Skip to content

Commit 64e9804

Browse files
author
http://jneen.net/
committed
completely remove blockquote and table tags
1 parent b49a33f commit 64e9804

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/gitlab/email/html_parser.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ def document
1515
end
1616

1717
def filter_replies!
18-
document.xpath('//blockquote').each { |n| n.replace('> ') }
19-
document.xpath('//table').each { |n| n.remove }
18+
document.xpath('//blockquote').each(&:remove)
19+
document.xpath('//table').each(&:remove)
2020
end
2121

2222
def filtered_html

0 commit comments

Comments
 (0)