Java String Clean cleanTextForCSV(final String input)

Here you can find the source of cleanTextForCSV(final String input)

Description

clean Text For CSV

License

Open Source License

Declaration

public static String cleanTextForCSV(final String input) 

Method Source Code

//package com.java2s;

public class Main {
    public static String cleanTextForCSV(final String input) {
        if (input == null)
            return "";

        return "\"" + input.replaceAll("\"", "\"\"") + "\"";
    }//from  w  ww . j a  v a 2  s.com
}

Related

  1. cleanText(String text)
  2. cleanText(String text)
  3. cleanText(String text)
  4. cleanText(String text)
  5. cleanText(String text)
  6. toText(String content)