lib/onix/normaliser.rb
def remove_control_chars(src, dest)
      inpath = File.expand_path(src)
      outpath = File.expand_path(dest)
      `cat #{inpath} | tr -d "\\000-\\010\\013\\014\\016-\\037" > #{outpath}`
    end
def remove_control_chars(src, dest)
      inpath = File.expand_path(src)
      outpath = File.expand_path(dest)
      `cat #{inpath} | tr -d "\\000-\\010\\013\\014\\016-\\037" > #{outpath}`
    end
def remove_control_chars ( src , dest ) inpath = File . expand_path ( src ) outpath = File . expand_path ( dest ) ` #{ inpath } \\ \\ \\ \\ \\ \\ #{ outpath } ` end
XML files shouldn't contain low ASCII control chars. Strip them.
XML files shouldn t contain low ASCII control chars . Strip them .