Class: TagsHelper::TagWikiScrubber

Inherits:
PostsHelper::PostScrubber show all
Defined in:
/var/apps/qpixel/app/helpers/tags_helper.rb

Constant Summary

Constants inherited from PostsHelper::PostScrubber

PostsHelper::PostScrubber::ALLOWED_ATTRS, PostsHelper::PostScrubber::ALLOWED_TAGS

Instance Method Summary collapse

Methods inherited from PostsHelper::PostScrubber

#initialize, #skip_node?

Constructor Details

This class inherits a constructor from PostsHelper::PostScrubber

Instance Method Details

#allowed_node?(node) ⇒ Boolean

Returns:

  • (Boolean)


50
51
52
# File '/var/apps/qpixel/app/helpers/tags_helper.rb', line 50

def allowed_node?(node)
  super && !node.matches?("a[href=''], p:only-child:empty")
end