escapeSingleQuotes function

String escapeSingleQuotes(
  1. String string
)

Escapes single quotes in a String.

Implementation

String escapeSingleQuotes(String string) => string.replaceAll("'", "''");