Here you can find the source of SQLiteSanitize(String input)
Parameter | Description |
---|---|
input | string to sanitize |
public static String SQLiteSanitize(String input)
//package com.java2s; public class Main { /**/*from w w w . j a v a 2 s .c o m*/ * Replaces SINGLE_QUOTEs with double SINGLE_QUOTEs * * @param input * string to sanitize * @return sanitized value */ public static String SQLiteSanitize(String input) { return input.replaceAll("'", "''").trim(); } }