function evalString(text) {
      if (text.lastIndexOf('\\') < 0) {
        return text;
      }
      return text.replace(/\\\\/g, '\\')
                 .replace(/\\n/g, '\n')
                 .replace(/\\r/g, '\r')
                 .replace(/\\t/g, '\t')
                 .replace(/\\b/g, '\b')
                 .replace(/\\f/g, '\f')
                 .replace(/\\{/g, '{')
                 .replace(/\\}/g, '}')
                 .replace(/\\"/g, '"')
                 .replace(/\\'/g, "'");
    }
// handle escaped characters (backslashes) in a string
handle escaped characters (backslashes) in a string
handle escaped characters ( backslashes ) in a string
function evalString(text) {
      if (text.lastIndexOf('\\') < 0) {
        return text;
      }
      return text.replace(/\\\\/g, '\\')
                 .replace(/\\n/g, '\n')
                 .replace(/\\r/g, '\r')
                 .replace(/\\t/g, '\t')
                 .replace(/\\b/g, '\b')
                 .replace(/\\f/g, '\f')
                 .replace(/\\{/g, '{')
                 .replace(/\\}/g, '}')
                 .replace(/\\"/g, '"')
                 .replace(/\\'/g, "'");
    }
function evalString ( text ) { if ( text . lastIndexOf ( '\\' ) < 0 ) { return text ; } return text . replace ( / \\\\ / g , '\\' ) . replace ( / \\n / g , '\n' ) . replace ( / \\r / g , '\r' ) . replace ( / \\t / g , '\t' ) . replace ( / \\b / g , '\b' ) . replace ( / \\f / g , '\f' ) . replace ( / \\{ / g , '{' ) . replace ( / \\} / g , '}' ) . replace ( / \\" / g , '"' ) . replace ( / \\' / g , "'" ) ; }
handle escaped characters (backslashes) in a string
handle escaped characters ( backslashes ) in a string