Useful as we often single quote arguments to the Ext functions
escapeSingleQuote(x)
x
string to escape
string with "'" replaced by "\'"