Skip to content
Snippets Groups Projects
Commit 64e98040 authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

completely remove blockquote and table tags

parent b49a33ff
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment