mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
11 lines
276 B
Ruby
11 lines
276 B
Ruby
class QuillJsScrubber < Rails::Html::PermitScrubber
|
|
def initialize
|
|
super
|
|
self.tags = %w(h1 span p br pre ul li strong em u sub sup s a blockquote ol)
|
|
self.attributes = %w(style class spellcheck href target)
|
|
end
|
|
|
|
def skip_node?(node)
|
|
node.text?
|
|
end
|
|
end
|