# frozen_string_literal: true module Axlsx # A series title is a Title with a slightly different serialization than chart titles. class SeriesTitle < Title # Serializes the object # @param [String] str # @return [String] def to_xml_string(str = +'') clean_value = Axlsx.trust_input ? @text.to_s : ::CGI.escapeHTML(Axlsx.sanitize(@text.to_s)) str << '' str << '' str << '' << Axlsx.cell_range([@cell]) << '' str << '' str << '' str << '' str << '' << clean_value << '' str << '' str << '' str << '' str << '' end end end