code: function(text, doubleQuote) {
      if (!doubleQuote) {
        // single quote fix
        return text.replace(/\\['\\]/g, function(seq) {
          return specialChar[seq];
        });
      }
      return text.replace(/\\[rntvef"'\\$]/g, function(seq) {
        return specialChar[seq];
      });
    }
docs: Unescape special chars