code: public static String clean(String text) {
          if (text == null)
              return "";
  
          text = text.trim();
          text = text.replace("\"", "\\\"");
          text = text.replace("\'", "\\\'");
          text = text.replace("\n", "");
          text = text.replace("\r", "");
          return text;
      }
docs: <p>clean.</p>
  
  @param text a {@link java.lang.String} object.
  @return a {@link java.lang.String} object.