PreserveSingleQuotes

Returns back string without letting the engine escape the single quotes. Used within CFQUERY blocks usually

PreserveSingleQuotes( string )

Returns: String

Argument Description
string
string, required

Variable that contains a string in which to preserve single-quotation marks.

Examples

name_for_query = "Mr. Frank O'Brian";
  dump(PreserveSingleQuotes(name_for_query));

See also