Commit 64e98040 authored by http://jneen.net/'s avatar http://jneen.net/

completely remove blockquote and table tags

parent b49a33ff
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment