Sha256: 1853559628033713ee37d5438a95d7d1ec9172e993afaf924ed39f6935eddce0
Contents?: true
Size: 663 Bytes
Versions: 3
Compression:
Stored size: 663 Bytes
Contents
module Panda module CMS module EditorJs module Blocks class Base include ActionView::Helpers::SanitizeHelper include ActionView::Helpers::TagHelper attr_reader :data, :options def initialize(data, options = {}) @data = data @options = options end def render "" end protected def html_safe(content) content.html_safe end def sanitize(text) Rails::Html::SafeListSanitizer.new.sanitize(text, tags: %w[b i u a code]) end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
panda-cms-0.7.3 | lib/panda/cms/editor_js/blocks/base.rb |
panda-cms-0.7.2 | lib/panda/cms/editor_js/blocks/base.rb |
panda-cms-0.7.0 | lib/panda/cms/editor_js/blocks/base.rb |