jQuery.quoteString  function     

jQuery.quoteString(string) Returns a string-repr of a string, escaping quotes intelligently.
Mostly a support function for toJSON.

   Examples:
       >>> jQuery.quoteString("apple")
       "apple"

   >>> jQuery.quoteString('"Where are we going?", she asked.')
   "\"Where are we going?\", she asked."

jQuery.quoteString(string) Returns a string-repr of a string, escaping quotes intelligently.
Mostly a support function for toJSON.

   Examples:
       >>> jQuery.quoteString("apple")
       "apple"

       >>> jQuery.quoteString('"Where are we going?", she asked.')
       "\"Where are we going?\", she asked."
$.quoteString(string) -> undefined
{}
{undefined}
© Jupiter IT - JavaScriptMVC Training and Support