boiler/attachments/sammy/plugins/sammy.ejs.js
function(input, null_text) {
      if (input == null || input === undefined) return null_text || '';
      if (input instanceof(Date)) return input.toDateString();
      if (input.toString) return input.toString().replace(/\n/g, '<br />').replace(/''/g, "'");
      return '';
    }
function(input, null_text) {
      if (input == null || input === undefined) return null_text || '';
      if (input instanceof(Date)) return input.toDateString();
      if (input.toString) return input.toString().replace(/\n/g, '<br />').replace(/''/g, "'");
      return '';
    }
function ( input , null_text ) { if ( input == null || input === undefined ) return null_text || '' ; if ( input instanceof ( Date ) ) return input . toDateString ( ) ; if ( input . toString ) return input . toString ( ) . replace ( / \n / g , '<br />' ) . replace ( / '' / g , "'" ) ; return '' ; }
For a given value, tries to create a human representation.
@param {Object} input the value being converted.
@param {Object} null_text what text should be present if input == null or undefined, defaults to ''
@return {String}
For a given value tries to create a human representation .