Sha256: f973048ee25f55addfec81d18ffc9cbc1322add2756d8643734949dc60603b3a
Contents?: true
Size: 509 Bytes
Versions: 17
Compression:
Stored size: 509 Bytes
Contents
# frozen_string_literal: true module Blacklight class MetadataFieldPlainTextLayoutComponent < Blacklight::MetadataFieldLayoutComponent with_collection_parameter :field def initialize(field:, **kwargs) super(field: field, **kwargs, value_tag: nil) end # rubocop:disable Rails/OutputSafety def call [label.to_s.strip, helpers.strip_tags(CGI.unescape_html(safe_join(values, "\n")).strip)].compact.join(' ').html_safe end # rubocop:enable Rails/OutputSafety end end
Version data entries
17 entries across 17 versions & 2 rubygems