Sha256: 371b145fe1138c31b493315de47e521f49729f862e4b0fb337e63c07e17b4dd6
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 Bytes
Contents
require 'htmlentities' module Kuhsaft class TextBrick < Brick include ActionView::Helpers::SanitizeHelper HTML_ENTITIES = HTMLEntities.new validates_presence_of :text def user_can_add_childs? false end def collect_fulltext HTML_ENTITIES.decode( strip_tags([ text, read_more_text ].compact.join(' ')).squish ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems