function optEscape(str, unsafe){
    if(unsafe){
      return _.escape(str);
    }
    return str;
  }
Sets the escaping method to be used by JST templates.

@param {Function} - The escape method to use.
@returns {Object} The Hopscotch object (for chaining).