Method: Axlsx.sanitize

Defined in:
lib/axlsx.rb

.sanitize(str) ⇒ String

returns the provided string with all invalid control charaters removed.

Parameters:

  • str (String)

    The sting to process

Returns:

  • (String)


134
135
136
# File 'lib/axlsx.rb', line 134

def self.sanitize(str)
  str.gsub(CONTROL_CHAR_REGEX, '')
end