Method: Axlsx.sanitize
- Defined in:
- lib/axlsx.rb
.sanitize(str) ⇒ String
returns the provided string with all invalid control charaters removed.
134 135 136 |
# File 'lib/axlsx.rb', line 134 def self.sanitize(str) str.gsub(CONTROL_CHAR_REGEX, '') end |