quoteString function

String quoteString(
  1. String s
)

Implementation

String quoteString(String s) {
  return "'${s.replaceAll("'", "''")}'";
}