completely remove blockquote and table tags

This commit is contained in:
http://jneen.net/ 2016-11-11 13:38:36 +09:00
parent b49a33ff6b
commit 64e98040a7
1 changed files with 2 additions and 2 deletions

View File

@ -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