completely remove blockquote and table tags
This commit is contained in:
parent
b49a33ff6b
commit
64e98040a7
|
@ -15,8 +15,8 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def filter_replies!
|
def filter_replies!
|
||||||
document.xpath('//blockquote').each { |n| n.replace('> ') }
|
document.xpath('//blockquote').each(&:remove)
|
||||||
document.xpath('//table').each { |n| n.remove }
|
document.xpath('//table').each(&:remove)
|
||||||
end
|
end
|
||||||
|
|
||||||
def filtered_html
|
def filtered_html
|
||||||
|
|
Loading…
Reference in New Issue