completely remove blockquote and table tags
This commit is contained in:
parent
b49a33ff6b
commit
64e98040a7
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue