PreserveSingleQuotes

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

Returns: string

Usage

PreserveSingleQuotes( string )

Arguments

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));