Skip to content
Snippets Groups Projects
Commit 6e429592 authored by ArtOfCode-'s avatar ArtOfCode-
Browse files

Move CommentScrubber

parent 9c28868e
No related branches found
No related tags found
No related merge requests found
......@@ -95,16 +95,3 @@ class CommentsController < ApplicationController
end
end
end
# Provides a custom HTML sanitization interface to use for cleaning up the HTML in questions.
class CommentScrubber < Rails::Html::PermitScrubber
def initialize
super
self.tags = %w[a b i em strong strike del code]
self.attributes = %w[href title]
end
def skip_node?(node)
node.text?
end
end
module CommentsHelper
end
class CommentScrubber < Rails::Html::PermitScrubber
def initialize
super
self.tags = %w[a b i em strong strike del code]
self.attributes = %w[href title]
end
def skip_node?(node)
node.text?
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment