nl_tokens: Return a truncated string with ellipses .
pl_tokens: function ellipses_ ( s , length , place , ellipses ) { if ( isNaN ( parseInt ( <mask> , 10 ) ) ) length = s . length ; if ( length < 0 || ! isFinite ( length ) ) length = 0 ; ellipses = typeof ellipses === 'string' ? ellipses : '...' ; if ( s . length <= length ) return s ; if ( length <= ellipses . length ) { return ellipses . substring ( 0 , length ) ; } else if ( ! place || place !== 'front' ) { return s . substr ( 0 , length - ellipses . length ) + ellipses ; } else { return ellipses + s . substr ( 0 , length - ellipses . length ) ; } }