All, I'd like to use Velocity to produce CSV files and I have a routine I've been using for years in automated reports to escape field values for CSV. Any objections to adding it to EscapeTool?
Actually... StringEscapeUtils (from commons-lang, which does most of EscapeTool's actual work) has an escapeCsv method already, though it does scan every String twice for " and , characters, and it does not handle leading and trailing whitespace (my code wraps such data in "s). Any comments? Thanks, -chris
signature.asc
Description: OpenPGP digital signature