code: function escapeChars(text) {
          var r = JSON.stringify(text);
          return r.slice(1, r.length - 1);
      }
docs: =========================================================================== Utility functions Replaces characters with the JSON escaped version