# frozen_string_literal: true module Wallaby module Resources module Index # Html cell class StringHtml < Cell # @return [String] def render if value.nil? null else max = metadata[:max] || default_metadata.max self.value = value.to_s if value.length > max concat content_tag(:span, value.truncate(max)) itooltip value else value end end end end end end end