diff --git a/dataRender/ellipsis.js b/dataRender/ellipsis.js index 186e9e5..b42ac5e 100644 --- a/dataRender/ellipsis.js +++ b/dataRender/ellipsis.js @@ -63,12 +63,18 @@ jQuery.fn.dataTable.render.ellipsis = function ( cutoff, wordbreak, escapeHtml ) } if ( typeof d !== 'number' && typeof d !== 'string' ) { + if ( escapeHtml ) { + return esc( d ); + } return d; } d = d.toString(); // cast numbers if ( d.length <= cutoff ) { + if ( escapeHtml ) { + return esc( d ); + } return d; }