Sha256: 574a0ed44f32a5b90bc977bbdaf801bcc0aae2d402cdf61c399b5a5d83fde50b
Contents?: true
Size: 390 Bytes
Versions: 19
Compression:
Stored size: 390 Bytes
Contents
module Krikri::Enrichments ## # Enrichment to capitalize sentences in a text field # # StripHtml.new.enrich_value('<html>Moomin <i><b>Valley</i></b>') # => 'Moomin Valley' # class StripHtml include Krikri::FieldEnrichment def enrich_value(value) return value unless value.is_a? String ActionView::Base.full_sanitizer.sanitize(value) end end end
Version data entries
19 entries across 19 versions & 1 rubygems