# File lib/csvparser.rb, line 220 def escape( string, enquote = false, sepalator = ',' ) escaped = string.dup if (escaped =~ /[#{sepalator}"\r\n]/) or enquote then escaped.gsub!( '"', '""' ) escaped = '"' + escaped + '"' end escaped end